Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here’s a fun way to randomly assign a task to a random person in Google Sheets.

The fun element lies in the automation of the random task assignment. Here’s how it works:

"Functionality of Interactive Random Task Assigner Template in Google Sheets

The top row contains tasks, while the first column contains names (students, employees, or your friends’ names), with the grid between them filled with checkboxes.

The free template initially assigns a random task to a random person. It does this by highlighting an unchecked tick box randomly.

Once you tick that box, it randomly highlights another tick box, and this process continues until you tick all the checkboxes.

You can use this interactive Random Task Assigner template straight out of the box. However, I strongly suggest following the step-by-step instructions below to help you adjust the template to meet your specific requirements.

Free Random Task Assignment Template for Google Sheets and How to Use It

You can preview and obtain a copy of this free Random Task Assigner template by clicking the button below.

Template

The template is configured for 20 tasks and 20 people, but feel free to adjust the number of columns (tasks) and rows (names) as needed.

To remove a column, simply right-click on the column letter at the top and select “Delete column” from the context menu.

Deleting a Task Column in a Grid in Google Sheets

To delete a row, right-click on the row number on the left and choose “Delete row” from the context menu.

Deleting a Name Row in a Grid in Google Sheets

If you have additional tasks or names, insert rows or columns within the grid, avoiding the beginning or end. You can access these options by right-clicking the row number or column letter and selecting the relevant options from the context menu.

Replace ‘Task 1’, ‘Task 2’, etc. with your specific tasks and ‘Name 1’, ‘Name 2’, etc. with actual names.

Once you’ve made your adjustments, click the drop-down menu (currently located in cell V2) and select “Yes” to initiate the highlighting process. Do not select “No” afterward.

Built-in Drop-Down with Yes/No Content

Click on the checkbox in the highlighted cell (representing the randomly assigned task in the grid). This will prompt the highlighting of another task. Continue this process until you have checked all cells.

What happens if I tick a checkbox that isn’t highlighted?

You can tick one or more checkboxes to prevent the template from highlighting them. For instance, if you wish to exclude Task 10 from the assignment, select cells K2:K21 and press the spacebar. This action ticks all the checkboxes in that range, indicating that these tasks are not to be assigned to anyone.

Important

If you encounter any issues with the Random Task Assigner template not responding to user interaction, you can resolve it by following these steps:

  1. Copy the formula located in cell W2.
  2. Delete the formula in cell W2.
  3. Paste the copied formula back into cell W2.

This should ensure that the template functions properly.

The Key Formula Used in the Random Task Assigner and Its Role

The template incorporates a formula within a cell and another formula within conditional formatting.

The pivotal formula, found in cell W2, is as follows:

=LAMBDA(cell, IF(V2="Yes", cell, ))(
   ArrayFormula(
      LET(
         grid, B2:U21, 
         test, 
         TOCOL(IF(grid=TRUE, ,ADDRESS(ROW(grid), COLUMN(grid))), 1), 
         IFERROR(SORTN(test, 1, 0, RANDARRAY(COUNTA(test)), 1))
      )
   )
)

What role does this formula play in assigning a random task to a random person?

This formula returns a random cell address from within the grid while ensuring that it excludes cells that have already been ticked.

Here’s a breakdown of the formula in its simplest form:

Step 1:

LET assigns the name ‘grid’ to the range B2:U21, which contains the tick boxes.

Step 2:

Generate the addresses of unticked cells within the ‘grid’ using the formula:

TOCOL(IF(grid=TRUE, ,ADDRESS(ROW(grid), COLUMN(grid))), 1)

The result is assigned to the variable ‘test’.

Step 3:

Sort the cell addresses returned in the previous step in ascending order based on randomly generated numbers by the formula:

IFERROR(SORTN(test, 1, 0, RANDARRAY(COUNTA(test)), 1))

This formula returns one random cell address, as the SORTN function returns sorted ‘n’ values, where ‘n’ in this case is 1.”

Highlighting a Cell in the Grid Matching the Cell Address

We have a random cell address representing the random task to assign. We’ll employ conditional formatting to highlight the corresponding cell within the grid.

I’ve applied the following rule, which tests whether each cell address in the grid is equal to the cell address returned by the key formula in cell W2:

=CELL("address", B2)=$W$2
Highlight Rule for Random Task Assignment in Google Sheets

If a match occurs, the cell highlights.

Resources

Here are some related topics in Google Sheets:

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Hierarchical Numbering Sequences in Excel

Creating hierarchical numbering sequences in an Excel spreadsheet can significantly improve the way you...

How to Easily Repeat a Sequence of Numbers in Excel

Excel offers multiple ways to accomplish tasks, and the simplicity of each approach depends...

Create a Sequence of Dates at Every Nth Row in Excel (Dynamic Array)

Would you like to create a sequence of dates in every nth row in...

XMATCH Row by Row: Finding Values Across a Range in Google Sheets

Using the BYROW function with XMATCH in Google Sheets allows us to match values...

More like this

XMATCH Row by Row: Finding Values Across a Range in Google Sheets

Using the BYROW function with XMATCH in Google Sheets allows us to match values...

Limit Formula Expansion to a Specific Row in Google Sheets

In this tutorial, I’ll explain how to limit the expansion of an array formula...

3-D Referencing Structured Data Tables in Google Sheets

When you have several tables within a single sheet—not across multiple sheets in a...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.