Dynamic Halfway Point

CraigWolfenden

New Member
Joined
Sep 9, 2010
Messages
39
Hello Everyone,

I was hoping someone could help me with what should be a simple problem, I have been racking my brains for a solution I cannot work out.

A have alist which contains a max of 28 names. Some weeks I may have full 28 names other weeks I may only have 14. I would like the spreadsheet to automatically work out the halfway point and mark half the class in group A and the other half in group B.

Does anyone have any idea how I could do this?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi, here is a formula option that could try:


Excel 2013/2016
AB
1NamesGroup
2Name 1A
3Name 2A
4Name 3A
5Name 4A
6Name 5A
7Name 6A
8Name 7A
9Name 8A
10Name 9B
11Name 10B
12Name 11B
13Name 12B
14Name 13B
15Name 14B
16Name 15B
17Name 16B
18Name 17B
19
20
21
22
23
24
25
26
27
28
29
Sheet1
Cell Formulas
RangeFormula
B2=IF(A2="","",IF(ROWS(B$2:B2)<=COUNTA($A$2:$A$29)/2,"A","B"))
 
Upvote 0

Forum statistics

Threads
1,215,459
Messages
6,124,945
Members
449,198
Latest member
MhammadishaqKhan

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