Darren Bartrup
Well-known Member
- Joined
- Mar 13, 2006
- Messages
- 1,296
- Office Version
-
- 365
- Platform
-
- Windows
The excerpt below is showing what I would like my spreadsheet to show.
The top two rows contain the raw data - this can be anywhere between 1 and 26 different counties (which is why the formula in the bottom row is using OFFSET in the SMALL function).
The bottom row is showing the figures in ascending numerical value.
What I'm trying to do is match the county name to the corresponding figure in the sorted list. I can't use a simple match to find the correct column numbers as there will be duplicate numbers.
I thought I'd cracked it by using the RANK function:
But the 3 is ranked joint 1st which knocks everything out.
Any idea how to match the figure in the bottom row to the corresponding column of figures at the top?
All help much appreciated as usual,
Darren.
The top two rows contain the raw data - this can be anywhere between 1 and 26 different counties (which is why the formula in the bottom row is using OFFSET in the SMALL function).
The bottom row is showing the figures in ascending numerical value.
What I'm trying to do is match the county name to the corresponding figure in the sorted list. I can't use a simple match to find the correct column numbers as there will be duplicate numbers.
I thought I'd cracked it by using the RANK function:
Code:
=IF(F24="","",INDEX(OFFSET($F21,0,0,1,6),,RANK(F25,OFFSET($F25,0,0,1,6),COLUMN())))
Any idea how to match the figure in the bottom row to the corresponding column of figures at the top?
All help much appreciated as usual,
Darren.