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.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hello, I am not sure if this is going to be of any use since it is a 365 attempt (not sure if you have it):

Excel Formula:
=LET(
array,D3:K20,
total,BYROW(array,LAMBDA(a,COUNTA(a))),
max,BYCOL(array,MAX),
count,BYROW(--(array=max),LAMBDA(a,SUM(a))),
percent,count/total,
rank,IFNA(DROP(REDUCE("",SEQUENCE(COLUMNS(array)),LAMBDA(a,b,HSTACK(a,RANK(INDEX(array,0,b),INDEX(array,0,b))))),,1),""),
average,BYROW(rank,LAMBDA(a,AVERAGE(a))),
HSTACK(percent,average))
 
Upvote 0
Hello, I am not sure if this is going to be of any use since it is a 365 attempt (not sure if you have it):

Excel Formula:
=LET(
array,D3:K20,
total,BYROW(array,LAMBDA(a,COUNTA(a))),
max,BYCOL(array,MAX),
count,BYROW(--(array=max),LAMBDA(a,SUM(a))),
percent,count/total,
rank,IFNA(DROP(REDUCE("",SEQUENCE(COLUMNS(array)),LAMBDA(a,b,HSTACK(a,RANK(INDEX(array,0,b),INDEX(array,0,b))))),,1),""),
average,BYROW(rank,LAMBDA(a,AVERAGE(a))),
HSTACK(percent,average))
hey, thx for the speedy reply. I'm running Office 2021 and do not have 365. so unfortunately no, this doesn't work :/
But these fancy shmancy 365 functions look awesome... i might need to consider an upgrade at some point lol
 
Upvote 0
I'm running Office 2021

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
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’)
Great idea, this place has made some nice improvements since I was last here :)
 
Upvote 0
Simplest way is with a helper row, in D21 dragged across
Excel Formula:
=MAX(D3:D20)
and then in B3 dragged down
Excel Formula:
=SUM(COUNTIFS(D3:K3,$D$21:$K$21))/COUNT(D3:K3)
 
Upvote 0
Simplest way is with a helper row, in D21 dragged across
Excel Formula:
=MAX(D3:D20)
and then in B3 dragged down
Excel Formula:
=SUM(COUNTIFS(D3:K3,$D$21:$K$21))/COUNT(D3:K3)
it's close, but not quite a winner. this checks each row against ANY highest value in row 21. Any match is counted, not just for the specific series/column in which that value appears.
 
Upvote 0
How about
Excel Formula:
=SUM((D3:K3=$D$21:$K$21)*(D3:K3<>""))/COUNT(D3:K3)
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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