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

Data Analysis

  • How to count table rows in Excel
  • How To Create Frequency Distribution in Excel
  • Number and Text Filters Examples in Excel
  • How To Filter Data in Excel
  • How To Compare Two Lists in Excel

References

  • Basic INDEX MATCH approximate in Excel
  • Multi-criteria lookup and transpose in Excel
  • How to get address of last cell in range in Excel
  • Create hyperlink with VLOOKUP in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation number multiple 100
  • Excel Data validation unique values only
  • Excel Data validation date in next 30 days
  • Prevent invalid data entering in specific cells

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.

Worked Example:   How to generate random times at specific intervals in Excel

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”.

Worked Example:   Excel Rank with ordinal suffix Example

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.

Worked Example:   How to generate random number between two numbers in Excel

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 generate random date between two dates 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

  • AND function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • How to use Excel NOT Function
  • Check multiple cells are equal in Excel
  • SWITCH function example in Excel

Date Time

  • WORKDAY function: Description, Usage, Syntax, Examples and Explanation
  • YEARFRAC function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate percent of year complete in Excel
  • Add business days to date in Excel
  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group numbers with VLOOKUP in Excel
  • Calculate conditional mode with criteria in Excel
  • Group times into unequal buckets in Excel
  • Running count group by n size in Excel
  • How to randomly assign people to groups in Excel

General

  • Subtotal by color in Excel
  • How to generate random times at specific intervals in Excel
  • How to set or clear a print area in Excel Worksheet
  • Zoom Worksheet in Excel
  • Create dynamic workbook reference to another workbook in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning