Randomly assign a number to one of two groups

panesai1

New Member
Joined
Dec 15, 2015
Messages
18
Hi there,
I have a list of people (some old, some young). I track the numbers of young and old and total them up every quarter (4 times per year).
I have a formula which totals the number of old and young , every quarter.

I need a formula to randomly assign the 5 younger people (Cell I24), into Group A and B (cells K24 and L24). Ideally, the block soze of randomisation should be 1:1. For every 2 people, one should be assigned to Group A and one to B. For every 10 older people, 5 get assigned to group A, and 5 assigned to Group B.
Of course I know it does not work when we only have an odd number, such as 5 older people.

Likewise, for the 2 younger people, i also need to randomly assign them to Group A and B too (Cell M24 and N24).
Please would anyone be able to help ?
many thanks


row​
ABCDEFGHIJKLM
N​
COLUMN
22
23QUARTERTotal youngerTotal olderYOUNGER GROUP AYOUNGER GROUP BOLDER
GROUP A
OLDER
GROUP B
242024-Q22 younger1 younger1 older1 younger1 younger1 older52
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,215,779
Messages
6,126,854
Members
449,345
Latest member
CharlieDP

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top