Using match and rank together

Alpacino

Well-known Member
Joined
Mar 16, 2011
Messages
511
Hi there,

I have got a spreadsheet as below

Names apple banana pears
Alan. 3. 5. 4
Sam. 6. 4. 2
Jeff. 2. 4. 3

This is very small example I have columns going across to bb
And rows down to 123

On another worksheet I have
name. Sam
Apples. Formula in here result(1st)
Bananas. (2nd)
Pears. (3rd)
I like to to rank the numbers in each column
But I like to use match function to match the column heading
E.g Sam rank for apples will result in 1st because he has the highest number (6)

Any ideas perhaps using rank(
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
If your first table in in A1:D4 on Sheet1 and you second table is in A1::B4 on another sheet, on that sheet in b2 enter:

=RANK(INDEX(Sheet1!$A$1:$D$4,MATCH(B$1,Sheet1!$A$1:$A$4,FALSE),MATCH(A2,Sheet1!$A$1:$D$1,FALSE)),INDEX(Sheet1!$A$2:$D$4,0,MATCH(A2,Sheet1!$A$1:$D$1,FALSE)))

and copy down.
 
Upvote 0

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

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