Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Header of column which has minimum in row?

Hi,
I have a problem. I have a matrix. In column #8(MIN_VAL), I calculate
the minimum of that particular row. I want to find the header of the
column, which has the minimum value. For example, in the matrix given
below, the answers under column MIN_HEADER should be
COL1,COL2,COL2,COL3,COL4 , for the corresponding rows. What functions
do I use in excel to do this.


COL1 COL2 COL3 COL4 COL5 COL6 COL7 MIN_VAL MIN_HEADER
12 18 23 22 25 27 26 12 ?
16 15 31 22 21 23 26 15 ?
19 14 23 22 20 32 25 14 ?
15 21 20 11 31 22 25 11 ?
15 19 19 21 10 22 15 10 ?


Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 87
Default Header of column which has minimum in row?

Try:
=INDEX($A$1:$G$1,1,MATCH(H2,A2:G2,0))

Where A1:G1 is your header, A2:G2 is the row, H2 is the minimum value
in that row. If you don't want to have to calculate the minimum, you
can put MIN(A2:G2) in place of the H2 and calculate it directly. ie:
=INDEX($A$1:$G$1,1,MATCH(MIN(A2:G2),A2:G2,0))

Note that your answer for rows 4 and 5 doesn't seem correct in your
example, and should probably be COL4, COL5, respectively.

Scott

PGPS wrote:
Hi,
I have a problem. I have a matrix. In column #8(MIN_VAL), I calculate
the minimum of that particular row. I want to find the header of the
column, which has the minimum value. For example, in the matrix given
below, the answers under column MIN_HEADER should be
COL1,COL2,COL2,COL3,COL4 , for the corresponding rows. What functions
do I use in excel to do this.


COL1 COL2 COL3 COL4 COL5 COL6 COL7 MIN_VAL MIN_HEADER
12 18 23 22 25 27 26 12 ?
16 15 31 22 21 23 26 15 ?
19 14 23 22 20 32 25 14 ?
15 21 20 11 31 22 25 11 ?
15 19 19 21 10 22 15 10 ?


Thanks.


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
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM


All times are GMT +1. The time now is 04:27 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"