Link to home
Start Free TrialLog in
Avatar of Ian Bell
Ian BellFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Match Var names with sorted coefs

Hi,

I would like to sort cells in highest order and display top four variable headings.
Please refer to attached sheet
Many thanks
Ian
Coef-sort.xlsx
Avatar of Mlanda T
Mlanda T
Flag of South Africa image

You need to use a combination of EXCEL formulas:
LARGE - to find the Nth largest value
MATCH - to find the column in which it occurs
INDEX - to return the "heading" at the position given by MATCH
=INDEX($K$5:$Z$5,1,MATCH(LARGE($K6:$Z6,B$5),$K6:$Z6,0))

Open in new window

See attached file with results. I've put the required position in a row. You can hard code this as the second parameter to the LARGE function.

I have not done anything with the colours though. But conditional formatting will help.

This will help understand the real value of those formulas: https://www.deskbright.com/excel/using-index-match-match
Avatar of Ian Bell

ASKER

No attachment ?
ASKER CERTIFIED SOLUTION
Avatar of Mlanda T
Mlanda T
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That's Brilliant, Thanks Mlanda

Regards

Ian