## How do I Randomly Assign People to a Group Without Doubling Up on the Same Group in Google Sheets

Google Sheets: TRANSPOSE, arrays, Randomize Ranges

### Random Combinations Without Repetition Using Arrays, TRANSPOSE and Randomize Ranges

Say you have a list of  30 people and a 30 list of groups. After every half hour for six hours the people must change to another group, but they cannot go back to a group they have already been in.

How can we schedule 12 sessions where every person can randomly go to another group without going to the same group twice?

This is pretty much the same issue I face when scheduling my teachers to proctor exams randomly each quarter for different classes. The rules I need to follow are:

1. No teacher should proctor the same class twice.
2. Assignment to proctor a class should seem random.
3. The teacher that teaches the class cannot proctor their own class.
4. Each week has an exam over the term. The term runs for 8 weeks plus a final requiring a total of 9 proctor sessions.

## VLOOKUP Left in Google Sheets with INDEX and MATCH

Ever been faced with an issue where you can’t move your column to the far left in order to Vlookup? I just came across this issue recently.

### The Problem – Vlookup

I needed to add teachers to a list of students who had to move into their class for two tests because their teacher (Hanna John-Kamen) would be absent on the test day.

Essentially, I was splitting the students into the remainder of the classes for that session time. In this student list sheet (Hannah 302-15) I had allocated the students new rooms and each room had a new teacher.

I couldn’t change the teacher proctors test list sheet ( Q2U1 Teacher) because the teachers who reference it would get confused. Unfortunately, the teacher’s name I wanted was in column B and the reference (The Speaking classroom) was in column I.

I need to put my first Vlookup in M2 of the Hannah 302-15 sheet.  If I tried to Vlookup it might look like this: `=VLOOKUP(L2,'Q2U1 Teacher'!B:I,-8, False``)`. Where L2 is the class I am searching for in the Hannah 302-15 sheet. ‘Q2U1 Teacher’!B:I is the range where B is the name column and I is the Class number. is clearly wrong. Vlookup will not accept a negative reference (It’s stupid, I know). False: because the list was not sorted.

So what to do.

## Spacer – Free Google Add-On That Spaces Row by Column Category

### What is Spacer?

Spacer is a Free Google Add-On that creates row spaces by column categories.

I use it as an academic administrator to create a space or two at the end of each class section to create a visual break between sections. This makes it easier for my staff to quickly identify class sections.

You can find Spacer at the Google Chrome Webstore.

### What can Spacer do?

Spacer can:

• Automatically detect the width of your columns.
• Allow you to select a column with the categories you want to use to space your data.
• Set the height of your header – so that is not spaced too.
• Set the thickness of your spaces.
• Set the color of your spaces
• Set starting and end position of your color filler.

### How to use Spacer

##### After Installation

Before You Start:

1. Before you start, create a Google Sheet with the data in it you want to space.
2. Select All the data.
3. Go to the menu bar and select:` Data>Sort Range... `  and select the column you want to sort by. This will be the column you will use to space your data by the categories in that column.

## Can I modify Google Sheets with code?

You sure can. Google has a fully supported script editor that you integrate with your Sheets, Docs, Forms, Slide, Gmail, Calendar and pretty much every aspect of the Google Suite. Its name: Google Apps Script.

Google Apps Script allows you to do all sorts of things like building short code to modify sheets and docs, create macros, develop add-ons mess around with Gmail and so much more.

Google Apps Scripts is based on Javascript. It can integrate with HTML5, CSS and Javascript well with its html service class.

Google has an extensive reference library to get you started.

Let’s get started with a basic example.

## How do I lock certain cells in a formula in Google Sheets?

You know, I’m pretty confident in my use of Google Sheets. I use a lot of its advanced features and formulas in my daily work.

But one thing was bugging me. Every time I created a formula and then grabbed and dragged (or double-clicked) that little box in the bottom right of the cell to have it repeat, the cells would change.

This normally is great, because it moves by a cell each time and makes my life easier.

### What if I want to keep a certain cell constant in a formula?

Enter the Absolute Reference.