Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Return column header as solution to lookup

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 60
Default Return column header as solution to lookup

If headings QS, SF, and PR are in cells D1:F1
with their data below them...

This formula finds the heading for the lowest
value in D5:F5
=INDEX($D$1:$F$1,MATCH(MIN(D5:F5),D5:F5,0))

Is that something you can work with?

Regards,

Ron Coderre
Microsoft MVP (Excel)

"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.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Return column header as solution to lookup

This worked perfectly! THANK YOU!!

"Ron Coderre" wrote:

If headings QS, SF, and PR are in cells D1:F1
with their data below them...

This formula finds the heading for the lowest
value in D5:F5
=INDEX($D$1:$F$1,MATCH(MIN(D5:F5),D5:F5,0))

Is that something you can work with?

Regards,

Ron Coderre
Microsoft MVP (Excel)

"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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lookup first & last values within row & return column header value Matt Excel Discussion (Misc queries) 12 May 1st 09 07:08 AM
Return column number from column header text Roger[_3_] Excel Discussion (Misc queries) 4 February 14th 08 09:40 PM
Lookup Value in Range/Array and Return Column Header Value [email protected] Excel Discussion (Misc queries) 3 June 16th 06 07:05 PM
Lookup Value in Range/Array and Return Column Header Value [email protected] Excel Worksheet Functions 3 June 16th 06 07:05 PM
Return Column header, if row value is > X kvail Excel Discussion (Misc queries) 2 January 11th 05 01:31 PM


All times are GMT +1. The time now is 02:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"