HI all. I asked a similar question and was given an excellent reply that worked well except it doesn't work if there are duplicate values. If there are two duplicate values in a row the formula I'm using repeats the first column header for the second value. What I need is to find the second value and corresponding column header. I've been searching and it seems this is a recurring question with no clear resolution. Any ideas? Here is the formula I'm using, thank you Eric W, to find the ranked items and then the column header. =IFERROR(LARGE($B3:$O3,(COLUMNS($R3:R3)+1)/2),"") for the numeric values and the following array formula for the header lookup. {=IF(R3="","",IF(R3>0,INDEX($B$2:$O$2,SMALL(IF($B3:$O3=R3,COLUMN($B$3:$O$3)-COLUMN($B$3)+1),COUNTIF($P3:P3,R3)+1)),""))}
[TABLE="width: 500"]
<tbody>[TR]
[TD]Should be[/TD]
[TD]Rank[/TD]
[TD]Column Detail[/TD]
[TD]Ranked Value[/TD]
[/TR]
[TR]
[TD]Col D ("yellow")[/TD]
[TD]10[/TD]
[TD]Yellow[/TD]
[TD].50[/TD]
[/TR]
[TR]
[TD]Col H ("green")[/TD]
[TD]11[/TD]
[TD]Yellow[/TD]
[TD].50[/TD]
[/TR]
</tbody>[/TABLE]
The second .50 ranked value should show the column detail of GREEN for Col. H, not repeat Col. D.
See original question on this forum under: [h=1]Rank a row, then put values and column header in a table[/h]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Should be[/TD]
[TD]Rank[/TD]
[TD]Column Detail[/TD]
[TD]Ranked Value[/TD]
[/TR]
[TR]
[TD]Col D ("yellow")[/TD]
[TD]10[/TD]
[TD]Yellow[/TD]
[TD].50[/TD]
[/TR]
[TR]
[TD]Col H ("green")[/TD]
[TD]11[/TD]
[TD]Yellow[/TD]
[TD].50[/TD]
[/TR]
</tbody>[/TABLE]
The second .50 ranked value should show the column detail of GREEN for Col. H, not repeat Col. D.
See original question on this forum under: [h=1]Rank a row, then put values and column header in a table[/h]