Excel Formulas to Randomly Assign Data to Groups ~ Easy Tricks!!
Tags: excelformula, excelformulas
Published: 2021-07-12 03:22:00

---
title: Excel Formulas to Randomly Assign Data to Groups ~ Easy Tricks!!
published: true
date: 2021-07-06 12:32:40 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-randomly-assign-data-to-groups/
---

Assume that you have a list of names, and you need to assign the group names. How could you deal with this task in Excel?  In this article, I introduce some formulas which can **randomly assign data to groups in Excel**. Let’s get them below!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

![Randomly assign data to groups](https://geekexcel.com/wp-content/uploads/2021/07/Randomly-assign-data-to-groups.png)<figcaption id="caption-attachment-48640">Randomly assign data to groups</figcaption>

## Generic Formula:

- You can use the below formula to find out the middle name from the full name in Excel.

**=[CHOOSE](https://geekexcel.com/how-to-use-choose-function-in-microsoft-excel-2013/)([RANDBETWEEN](https://geekexcel.com/how-to-use-excel-randbetween-function-in-office-365/)(1,3),”Group A”,”Group B”,”Group C”)**

## Syntax Explanations:

- **CHOOSE** – In Excel, the **[CHOOSE function](https://geekexcel.com/how-to-use-choose-function-in-microsoft-excel-2013/)** will help to return a value from the list of value arguments using a given position or index.
- **RANDBETWEEN** – This function helps to return the random integer number between the two specified values. Read more on the **[RANDBETWEEN function](https://geekexcel.com/how-to-use-excel-randbetween-function-in-office-365/)**.
- **Group A, B & C** – It represents the Group names.
- **Percentage** – It specifies the percentage of the total.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.

## Practical Example:

Let’s consider the below example image.

- Here we will enter the input values in **Column B** , and **Column C**.
- Now we need to generate the random group names such as Group A, B, and C.

![Input Ranges](https://geekexcel.com/wp-content/uploads/2021/07/Input-Ranges-25.png)<figcaption id="caption-attachment-48639">Input Ranges</figcaption>

- Select any cell and type the above-given formula.

![Enter the formula](https://geekexcel.com/wp-content/uploads/2021/07/Enter-the-formula-24.png)<figcaption id="caption-attachment-48638">Enter the formula</figcaption>

- Finally, press the ** ENTER**  key, you can get the result as shown below.

![Result](https://geekexcel.com/wp-content/uploads/2021/07/Result-25.png)<figcaption id="caption-attachment-48641">Result</figcaption>

## Wind-Up:

In this blog post, you can get to know the formulas to **randomly assign data to groups in Excel**. Please share your **query** below in the **comment** box. We will assist you.

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Read Ahead:

- **[Excel Formulas to Get the Profit Margin Percentage ~ Quickly!!](https://geekexcel.com/excel-formulas-to-get-the-profit-margin-percentage/)**
- **[How to Insert a Date or Formatted Date in Excel Office 365?](https://geekexcel.com/how-to-insert-a-date-or-formatted-date-in-excel-office-365/)**
- **[Excel Formulas to Calculate the Surface Area of a Cone ~ Easy Tricks!!](https://geekexcel.com/excel-formulas-to-calculate-the-surface-area-of-a-cone/)**
- **[Excel Formulas to Get the Percentage Discount ~ Useful Tricks!!](https://geekexcel.com/excel-formulas-to-get-the-percentage-discount/)**