number grouping

drltr6

New Member
Joined
Dec 14, 2007
Messages
18
Office Version
  1. 2011
Platform
  1. MacOS
I have a list of numbers from smallest to largest. The number list varies from 12 to 32 numbers. I want to assign the letter "A" to the lowest 25% of the numbers, a "B" to the next lowest 25%, a "C" to the next lowest 25%, and a "D" to the top 25%. In other words, I want to break down my list into 4 separate groups no matter how many numbers are in the list.
Any help would be greatly appreciated.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Something like this?

drl
ABCDE
11A8A
22A19C
33A7A
44A29D
55A30D
66A1A
77A4A
88A27D
99B32D
1010B2A
1111B13B
1212B23C
1313B9B
1414B31D
1515B6A
1616B11B
1717C22C
1818C17C
1919C10B
2020C12B
2121C18C
2222C16B
2323C20C
2424C5A
2525D24C
2626D3A
2727D21C
2828D14B
2929D28D
3030D26D
3131D25D
3232D15B
Data
Cell Formulas
RangeFormula
A1:A32A1=SEQUENCE(32)
B1:B32B1=XLOOKUP(A1#,QUARTILE.INC($A$1#,SEQUENCE(4)),CHAR(SEQUENCE(4,,65)),,1)
D1:D32D1=RANDOMIZE(A1#)
E1:E32E1=XLOOKUP(D1#,QUARTILE.INC(D1#,SEQUENCE(4)),CHAR(SEQUENCE(4,,65)),,1)
Dynamic array formulas.
 
Upvote 0
Thanks! This would work if I always had 32 numbers, but I could have any multiple of 4 numbers. Such as 28 or 24 or 20. How can I adapt this to account for changes in the amount of numbers in the list? For example, if I have 24 numbers, then I need 6 A's, 6 B's etc. If I have 16 numbers, I need 4 A's, 4 B's etc..
 
Upvote 0
Based on the mini sheet in post 2, try this in E1 and fill down.

=IF(D1="","",CHAR(65+MATCH(D1,SMALL($D$1:$D$32,{0,1,2,3}*COUNT($D$1:$D$32)+1)))
 
Upvote 0
drit Because you can never have too many solutions, here is one more. Now this does have a limit of 40 but if you need more just change the $A$40 to $A$400 or whatever you need. Just make sure the number is divisible by 4.


22-11-1.xlsx
ABC
12A
23A
35A
47A
58A
69A
711A
815A
917B
1019B
1120B
1221B
1322B
1424B
1525B
1627B
1730C
1835C
1936C
2037C
2137C
2237C
2337C
2437C
2537D
2637D
2737D
2837D
2937D
3037D
3137D
3237D
Data for 40
Cell Formulas
RangeFormula
C1:C32C1=IF(A1<>"",IF((COUNT($A$1:$A$40)*0.75)<ROW(A1),"D",IF((COUNT($A$1:$A$40)*0.5)<ROW(A1),"C",IF((COUNT($A$1:$A$40)*0.25)<ROW(A1),"B","A"))),"")
 
Upvote 0
I don't know what you mean that the example I posted would only work for 32.

Book1
ABCDEFGHIJKL
11A1A1A1A
22B2A2A2A
33C3A3A3A
44D4B4A4A
55B5A5A
66B6A6A
77C7B7A
88C8B8A
99C9B9B
1010D10B10B
1111D11B11B
1212D12B12B
1313C13B
1414C14B
1515C15B
1616C16B
1717C17C
1818C18C
1919D19C
2020D20C
2121D21C
2222D22C
2323D23C
2424D24C
2525D
2626D
2727D
2828D
2929D
3030D
3131D
3232D
Sheet1
Cell Formulas
RangeFormula
A1:A4A1=SEQUENCE(4)
B1:B4,L1:L32,H1:H24,E1:E12B1=XLOOKUP(A1#,QUARTILE.INC(A1#,SEQUENCE(4)),CHAR(SEQUENCE(4,,65)),,1)
D1:D12D1=SEQUENCE(12)
G1:G24G1=SEQUENCE(24)
K1:K32K1=SEQUENCE(32)
Dynamic array formulas.
 
Upvote 0
Players
Hdcp
Tee
A,B,C,D
TEAM
zBlind Draw
X
g
zBlind Draw
X
g
Martin, Steve - 37
0
G
DiLaura, Tom - 13
4
W
Lancaster, Don - 171
4
G
Wayt, Tim - 403
4
G
Baun, Dan - 179
5
W
Randall, Chuck - 313
5
G
Wallner, Dave - 304
5
G
McDuff, Mark - 851
7
G
Lopez, Tony - 362
8
G
Wilson, Larry - 900
8
G
Lussier, Denis - 185
8
W
Geyer, Rolly - 145
9
W
Plummer, Bob - 126
9
G
Pfeiller, Bill -1113
10
G
Hourigan, Bob - 32
11
W
Krumrie, Harry - 189
11
W
Thurman, Mike - 76
11
W
Fleischmann, Jacques - 1229
13
W
Schoendorf, Tom - 298
13
W
Goldade, Ron - 91
14
G
Schrauben, Fred - 6251
14
W
Connors, Don - 152
15
W
Feliks, Don - 388
16
B
Williams, Tom - 81
17
B
Mizell, Leslie - 499
17
W
Dupuis, Bob - 236
18
G
This is my golf spreadsheet. I want to divide the players into 4 equal groups (A,B,C,D) based on Handicap. Blind Draw players will be in the "D" group. The number of players will always be a multiple of 4. In this example there are 28 players, so the "A" group will have the first 7 players based on Handicap. The "B" group will have the next 7 players etc. I need a formula that will calculate this when the total number of players changes. Thanks!
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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