View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Umlas[_3_] Bob Umlas[_3_] is offline
external usenet poster
 
Posts: 320
Default Return column header as solution to lookup

If the header is in row 1, put this in G2:
=INDEX($1:$1,MATCH(MIN(A2:F2),A2:F2,0))
and fill down
Bob Umlas
Excel MVP

"Tessa" wrote in message
...
I want to search for the minimum value in each row and then return the
column
header for the answer. For example:

FROM zip city QS SF PR

55001 AFTON 17.5 29.08 10.5 "answer"

Where the answer would be PR
I need this formula to copy down 178 rows as well. I have tried lookup,
hlookup and a few others, but cant seem to get it to work. Thanks in
advance.