Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tom321
 
Posts: n/a
Default Find Largest and Return Column Name

I am comparing 3 columns and trying to find the maximum value of the columns.
But instead of just displaying the maximum value I would like it to show
which column the value is from.

OBS_ID CLASS1 CLASS2 CLASS3
A 2 5 10
B 12 10 4
C 5 1 15
D 2 6 12
E 1 23 9


So in this case, when the formula is run it will return "CLASS3" for Row A
and "CLASS1" for Row B and so on..

Thanks for you help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kraljb
 
Posts: n/a
Default Find Largest and Return Column Name


Assuming that your Column Titles are in Row1 and that Data begins Row2
=INDEX(A1:D1,0,MATCH(MAX(A2:D2),A2:D2,0))


--
kraljb
------------------------------------------------------------------------
kraljb's Profile: http://www.excelforum.com/member.php...fo&userid=9955
View this thread: http://www.excelforum.com/showthread...hreadid=523634

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tom321
 
Posts: n/a
Default Find Largest and Return Column Name

Thanks, that worked perfectly

"kraljb" wrote:


Assuming that your Column Titles are in Row1 and that Data begins Row2
=INDEX(A1:D1,0,MATCH(MAX(A2:D2),A2:D2,0))


--
kraljb
------------------------------------------------------------------------
kraljb's Profile: http://www.excelforum.com/member.php...fo&userid=9955
View this thread: http://www.excelforum.com/showthread...hreadid=523634


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
Can't find formula for largest value in multiple cells telewats New Users to Excel 5 January 9th 06 07:26 PM
return largest number of a list of numbers in the same cell Hells Excel Worksheet Functions 2 October 5th 05 01:52 PM
Find largest alphanumeric value matching alpha criteria in databas Alison Excel Worksheet Functions 7 August 4th 05 06:59 PM
look up number in column eioval Excel Worksheet Functions 2 July 30th 05 08:16 PM
How do I return the cell address of the largest of a set of values Mr. Snrub Excel Discussion (Misc queries) 8 May 28th 05 03:57 PM


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