Pecentile, Ranking, or something else?

ChaplainLewis

New Member
Joined
Dec 11, 2015
Messages
7
I have a list that ranges from 200-225 rows long and constantly in flux. In each row is a persons name, a score of sorts, and a grade. There's more than that but it doesn't really matter for this question. I might look something like this:
ABC
1Name
Score
Grade
2Tom
5.5
3Sally
3.2
4Ed
1.6
5Alice
4.9
6Esther
2.8
7Jerry
5.4
8Lenny
4.6
9Delores
1.6
10Scott
3.2
11Craig
3.7

<tbody>
</tbody>

The real issue is the grade. Imagine if this table were several hundred rows deep. I am hoping to get the grade to populate based on the score as ordered into the overall list (something like a percentile, I think). The grading would be like this:

AB
1Grade
Percent
2A
Top 10%
3P
Next 24%
4C
Next 33%
5M
Bottom 33%

<tbody>
</tbody>

After sorting and adding the grade manually, it has gotten more than a little tedious. I'm hoping I can automate it. I've tried nested IF statements and messed around with the PERCENTILE.INC function (which was an interesting failure). I've even used RANK and a couple other functions I'm not terribly familiar with. I get close but can't seem to make it work. Any help would be appreciated.

Thanks a ton.
 
Last edited:

Excel Facts

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


Excel 2010
ABCDEFG
1NameScoreGradeGradePercent
2Tom5.5AATop 10%0 to 10
3Sally3.2CPNext 24%11 to 34
4Ed1.6MCNext 33%35 to 64
5Alice4.9PMBottom 33%65 to 100
6Esther2.8M
7Jerry5.4P
8Lenny4.6C
9Delores1.6M
10Scott3.2C
11Craig3.7C
Sheet1
Cell Formulas
RangeFormula
C2=LOOKUP(RANK(B2,$B$2:$B$11)/COUNT($B$2:$B$11),{0,0.11,0.35,0.65},{"A","P","C","M"})
 
Upvote 0
I'll give that a shot. But if I may ask a couple of follow on questions based on your answer, just so I can understand what's actually happening here.

1. I've never seen the "{" symbol used. Is that shorthand for something or do I use that exactly?
2. Instead of the "{0,0.11,0.35,0.65}" can I substitute the reference such as "{E2,E3,E4,E5}"? that would allow me to change the percentages if my boss ever wanted a different scale.

Again, thanks a ton.
 
Upvote 0
I'll give that a shot. But if I may ask a couple of follow on questions based on your answer, just so I can understand what's actually happening here.

1. I've never seen the "{" symbol used. Is that shorthand for something or do I use that exactly?
2. Instead of the "{0,0.11,0.35,0.65}" can I substitute the reference such as "{E2,E3,E4,E5}"? that would allow me to change the percentages if my boss ever wanted a different scale.

Again, thanks a ton.

The curly brackets are essentially doing this without having the lookup table. If you might change the values in the future, having a lookup table seems like the way to go.


Excel 2010
ABCDEFG
1NameScoreGradeGradePercentDescription
2Tom5.5AA0%0 to 10
3Sally3.2CP11%11 to 34
4Ed1.6MC35%35 to 64
5Alice4.9PM65%65 to 100
6Esther2.8M
7Jerry5.4P
8Lenny4.6C
9Delores1.6M
10Scott3.2C
11Craig3.7C
Sheet1
Cell Formulas
RangeFormula
C2=LOOKUP(RANK(B2,$B$2:$B$11)/COUNT($B$2:$B$11),$F$2:$F$5,$E$2:$E$5)
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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