Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
xxxMarkxxx
 
Posts: n/a
Default Index multiple cells


Original Question:

I need a function fo r the following:

In a given row of # values, I want to find the max. value and give the
associated text column heading in a new column. How do I do this??
Thanks

Original Answer:

With your headings in A1:Z1 and your numbers in A2:Z2
=INDEX(A1:Z1,MATCH(MAX(A2:Z2),A2:Z2),0)

This worked, but how can I reference more than one column heading
should there be multiple cells that equal the max value?

Thanks


--
xxxMarkxxx
------------------------------------------------------------------------
xxxMarkxxx's Profile: http://www.excelforum.com/member.php...o&userid=29401
View this thread: http://www.excelforum.com/showthread...hreadid=491169

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Index multiple cells

A couple of ways:

=OFFSET(A1:z1,0,-1+MIN(IF(A1:z10=MAX(A1:z10),COLUMN(A1:z10))),1,1)
=INDEX(A1:z1,MIN(IF(A2:z10=MAX(A2:z10),COLUMN(A2:z 10))))

These are array formulas. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column.





xxxMarkxxx wrote:

Original Question:

I need a function fo r the following:

In a given row of # values, I want to find the max. value and give the
associated text column heading in a new column. How do I do this??
Thanks

Original Answer:

With your headings in A1:Z1 and your numbers in A2:Z2
=INDEX(A1:Z1,MATCH(MAX(A2:Z2),A2:Z2),0)

This worked, but how can I reference more than one column heading
should there be multiple cells that equal the max value?

Thanks

--
xxxMarkxxx
------------------------------------------------------------------------
xxxMarkxxx's Profile: http://www.excelforum.com/member.php...o&userid=29401
View this thread: http://www.excelforum.com/showthread...hreadid=491169


--

Dave Peterson
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
How do I merge cells with multiple data values? KatMic Excel Discussion (Misc queries) 2 November 28th 05 10:13 PM
how can i ignore blank cells when multiple cells? arash Excel Worksheet Functions 4 November 17th 05 04:35 PM
Excel 97 - Selecting multiple cells from 2 different Pivot Tables jjones_HAB Excel Discussion (Misc queries) 0 March 1st 05 12:01 PM
adding certain cells in multiple worksheets in multiple workbooks Stephen via OfficeKB.com Excel Worksheet Functions 1 February 4th 05 08:31 PM
how do i add the same text after current text in multiple cells Sue Excel Discussion (Misc queries) 3 January 13th 05 09:28 PM


All times are GMT +1. The time now is 03:20 AM.

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"