Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Find values across a row and return a text value from the same column

I need to find the largest, second largest, etc numbers across a set in a row then have the formula return the columns header (different row, same column).

I know the index function may be best for this, but I am lost getting the function to operate properly here. Thanks for any help you can provide.

-Ryan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default Find values across a row and return a text value from the same column

I need to find the largest, second largest, etc numbers across a set in a
row then have the formula return the columns header (different row, same
column).


I put header values in A1:J1, and numbers in A2:J14.

I put formulas to show the headers for the largest number of each row in K2:K14; second largest, L2:L14, etc.

The formulas started with this in K2:
=INDEX($A$1:$J$1,1,MATCH(LARGE($A2:$J2,COLUMN()-10),$A2:$J2,0))
Then copy the formula to all of K2:T14.

Modify to conform wiuth your data layout.

Hope this helps getting started.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default Find values across a row and return a text value from the same column

I need to find the largest, second largest, etc numbers across a set in a
row then have the formula return the columns header (different row, same
column).


I put header values in A1:J1, and numbers in A2:J14.

I put formulas to show the headers for the largest number of each row in K2:K14; second largest, L2:L14, etc.

The formulas started with this in K2:
=INDEX($A$1:$J$1,1,MATCH(LARGE($A2:$J2,COLUMN()-10),$A2:$J2,0))
Then copy the formula to all of K2:T14.

Modify to conform wiuth your data layout.

If there can be a tie in the numbers, the first header gets repeated. Hopefully, this is ok.

Hope this helps getting started.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default Find values across a row and return a text value from the same column

On Tue, 19 Mar 2013 17:50:30 -0700 (PDT), zvkmpw wrote:

=INDEX($A$1:$J$1,1,MATCH(LARGE($A2:$J2,COLUMN()-10),$A2:$J2,0))


Not tested but I think you would get the same result, and not have it be dependent on the intial column, by using:

COLUMNS($A:A)

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
Return text if column and row match values inneed Excel Worksheet Functions 0 July 24th 12 06:19 PM
Find values in table and return row/column name Fluxx Excel Worksheet Functions 8 August 11th 09 08:21 AM
Find max value from 3 cells, return text, but 2 max values same! Struggling in Sheffield[_2_] New Users to Excel 5 March 7th 09 04:34 PM
find a value down a column and return seventeen values in the row Aaron Dyck Excel Programming 1 October 4th 06 05:09 PM
Find certain text in a column and return statement TelecomAuditor Excel Worksheet Functions 4 August 22nd 05 11:00 PM


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