Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to sum a total in multiple Excel tables
  • How to Create One and Two Variable Data Tables in Excel
  • Understanding Anova in Excel
  • How To Filter Data in Excel
  • How To Load Analysis ToolPak in Excel

References

  • Offset in Excel
  • How to retrieve first match between two ranges in Excel
  • How to get address of first cell in range in Excel
  • Excel Advanced Lookup using Index and Match Functions
  • How to get first column number in range in Excel

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation specific characters only
  • Excel Data validation no punctuation
  • Excel Data validation require unique number
  • Excel Data validation whole percentage only

How to randomly assign data to groups in Excel

by

To randomly people (or anything) to groups you can use the RANDBETWEEN function with the CHOOSE function.

Formula

=CHOOSE(RANDBETWEEN(1,3),"Group A","Group B","Group B")

Explanation

In the example shown, the formula in F3 is:

=CHOOSE(RANDBETWEEN(1,3),"A","B","C")

When copied down the column, this formula will generate a random group (A, B, or C) for each person in the list.

How this formula works

The RANDBETWEEN function generates random numbers between two integers. The CHOOSE function takes a number as the first argument, and uses that number to select the “nth” item from the following arguments.

So, in this formula, RANDBETWEEN generates a number between 1 and 3, this number is used to choose a group from the 3 following values: “A”,”B”,”C”.

You can use this same approach any time you need make random assignments. It’s especially useful when you you need to assign data to a limited number of text values.

Automatic recalculation

Be aware that RANDBETWEEN will re-calculate whenever there is any change to a workbook, or even when a workbook is opened. Once you have a set of random assignments, you may want to copy and paste the formulas as values to prevent further changes.

Post navigation

Previous Post:

How to calculate project complete percentage in Excel

Next Post:

Popularly Used Excel Functions and their examples

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • Extract multiple matches into separate rows in Excel

Date Time

  • Calculate expiration date in Excel
  • Dynamic date list in Excel
  • Steps to create Dynamic calendar grid in Excel
  • Display the current date and time in Excel
  • Basic timesheet formula with breaks in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Group arbitrary text values in Excel
  • How to randomly assign people to groups in Excel
  • Map text to numbers in Excel
  • Group times into 3 hour buckets in Excel

General

  • Subtotal by color in Excel
  • Excel Ribbon Quick Overview For Beginners
  • List sheet names with formula in Excel
  • How to password protect excel sheet?
  • Currency vs Accounting Format in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning