Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Column header for Max value? Index/array function?

Hello--

I have a series of columns for which I'm trying to find the column header
for the max value. For example:

A B C D E F
Store 1 Store 2 Store 3 Store 4
Row 1 1 9 60 72 Store 4
Row 2 16 33 20 25 Store 2
Row 3 26 18 68 79 Store 4

I'm trying to find a formula that looks for the maximum value across a range
of columns and then returns the corresponding column header for that column.
The result I'm looking for is in column F.

Hoping someone can help.

Thanks!!

Cecilia

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Column header for Max value? Index/array function?

Try this...

=INDEX(B$1:E$1,MATCH(MAX(B2:E2),B2:E2,0))

Copy down as needed.

--
Biff
Microsoft Excel MVP


"Cecilia" wrote in message
...
Hello--

I have a series of columns for which I'm trying to find the column header
for the max value. For example:

A B C D E F
Store 1 Store 2 Store 3 Store 4
Row 1 1 9 60 72 Store 4
Row 2 16 33 20 25 Store 2
Row 3 26 18 68 79 Store 4

I'm trying to find a formula that looks for the maximum value across a
range
of columns and then returns the corresponding column header for that
column.
The result I'm looking for is in column F.

Hoping someone can help.

Thanks!!

Cecilia



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Column header for Max value? Index/array function?

=INDEX($B$1:$E$1,MATCH(MAX(B2:E2),B2:E2,0))


"Cecilia" wrote:

Hello--

I have a series of columns for which I'm trying to find the column header
for the max value. For example:

A B C D E F
Store 1 Store 2 Store 3 Store 4
Row 1 1 9 60 72 Store 4
Row 2 16 33 20 25 Store 2
Row 3 26 18 68 79 Store 4

I'm trying to find a formula that looks for the maximum value across a range
of columns and then returns the corresponding column header for that column.
The result I'm looking for is in column F.

Hoping someone can help.

Thanks!!

Cecilia

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Column header for Max value? Index/array function?

In cell F1 apply the below formula and copy down as required

="Store " & MATCH(MAX(B1:E1),B1:E1,0)

--
Jacob


"Cecilia" wrote:

Hello--

I have a series of columns for which I'm trying to find the column header
for the max value. For example:

A B C D E F
Store 1 Store 2 Store 3 Store 4
Row 1 1 9 60 72 Store 4
Row 2 16 33 20 25 Store 2
Row 3 26 18 68 79 Store 4

I'm trying to find a formula that looks for the maximum value across a range
of columns and then returns the corresponding column header for that column.
The result I'm looking for is in column F.

Hoping someone can help.

Thanks!!

Cecilia

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Column header for Max value? Index/array function?

On Thursday, December 3, 2009 5:03:01 AM UTC+5:30, Cecilia wrote:
Hello--I have a series of columns for which I'm trying to find the column header for the max value. For example:A B C D E F Store 1 Store 2 Store 3 Store 4 Row 1 1 9 60 72 Store 4 Row 2 16 33 20 25 Store 2Row 3 26 18 68 79 Store 4I'm trying to find a formula that looks for the maximum value across a range of columns and then returns the corresponding column header for that column. The result I'm looking for is in column F.Hoping someone can help. Thanks!!Cecilia


Thanks Valko.... It is working fine.
Regards,
balaji


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Column header for Max value? Index/array function?

On Thursday, December 3, 2009 3:33:01 AM UTC+4, Cecilia wrote:
Hello--

I have a series of columns for which I'm trying to find the column header
for the max value. For example:

A B C D E F
Store 1 Store 2 Store 3 Store 4
Row 1 1 9 60 72 Store 4
Row 2 16 33 20 25 Store 2
Row 3 26 18 68 79 Store 4

I'm trying to find a formula that looks for the maximum value across a range
of columns and then returns the corresponding column header for that column.
The result I'm looking for is in column F.

Hoping someone can help.

Thanks!!

Cecilia


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
INDEX function (array type) Sean[_3_] Excel Worksheet Functions 4 August 27th 09 10:06 PM
Return column header within an array when a value is met ECDNewEngland Excel Worksheet Functions 9 October 20th 08 10:08 PM
Help on Array and Index function Blue Fish[_3_] Excel Worksheet Functions 6 August 24th 08 04:50 AM
Returning an array from the INDEX function Agenor Excel Worksheet Functions 2 November 28th 06 12:44 AM
Using INDEX function to return array row. RBI Excel Worksheet Functions 1 October 4th 06 03:21 PM


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