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)),""))}
<tbody>
</tbody>
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]
Should be | Rank | Column Detail | Ranked Value |
Col D ("yellow") | 10 | Yellow | .50 |
Col H ("green") | 11 | Yellow | .50 |
<tbody>
</tbody>
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]