Calculating a number's rank across multiple series

miinstrel

New Member
Joined
Aug 26, 2010
Messages
28
Office Version
  1. 2021
Platform
  1. Windows
Hello hive mind,

Appreciate any assistance you can provide with this formula that's stumping me. In column B I'm trying to calculate how often the row's entry in columns D:K is the HIGHEST number of that series.
E.g. B4 should show 50% since the 130 in D4 is (tied for) the highest but the 141 in H4 is not.

Additionally, I'm trying to calculate the average rank (1.00 - 4.00) of each item across all series in which it is present.
E.g. C4 should show 1.50 since D4 is the highest (1.00) in column D and H4 is 2nd highest (2.00) in column H. (1+2)/2 = 1.5

1723473143450.png


Thanks for your time.
 
You could try it like
Excel Formula:
=SUM(IF(D4="",0,RANK(D4,$D$3:$D$20)),IF(E4="",0,RANK(E4,$E$3:$E$20)),IF(F4="",0,RANK(F4,$F$3:$F$20)))/COUNT(D4:K4)
 
Upvote 0
Solution

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
You could try it like
Excel Formula:
=SUM(IF(D4="",0,RANK(D4,$D$3:$D$20)),IF(E4="",0,RANK(E4,$E$3:$E$20)),IF(F4="",0,RANK(F4,$F$3:$F$20)))/COUNT(D4:K4)
was hoping for something more automatic as more series will be added to this document over time, but copying that if/rank for each column isn't too tedious. didn't even know 'rank' existed as a function... thank you.

think this is effectively solved.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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