Rank function

MikeGInvAnalyst

New Member
Joined
May 15, 2013
Messages
5
Hi Guys,

The formula below is only returning A and B and Not C

=IF(RANK(M2,$M$2:$M$3765,)/COUNT($M$2:$M$3765)<=1/3,"A",IF(RANK(M2,$M$2:$M$3765,)/COUNT($M$2:$M$3765)<=2/3,"B",IF(RANK(M2,$M$2:$M$3765,)/COUNT($M$2:$M$3765)>=3/3,"C")))

Any ideas ?

Many thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi

Possibly :-
Code:
=LOOKUP(RANK(M2,$M$2:$M$3765,)/COUNT($M$2:$M$3765)*3,{0,1,2},{"A","B","C"})

hth
 
Upvote 0
Thanks,

Unfortunately the same thing occurs,

the range of numbers in m2:m3765 is 0-3060,

However i can get it work if a -1 is introduced.

Many thanks
 
Upvote 0
Hi

Thanks for the feedback.

I did say possibly! Lol.

Pleased to have helped solve your problem.

Good luck with your project.
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,667
Members
449,462
Latest member
Chislobog

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