Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Column header for Max value? Index/array function?

1,849 views
Skip to first unread message

Cecilia

unread,
Dec 2, 2009, 6:33:01 PM12/2/09
to
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

T. Valko

unread,
Dec 2, 2009, 6:49:54 PM12/2/09
to
Try this...

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

Copy down as needed.

--
Biff
Microsoft Excel MVP


"Cecilia" <Cec...@discussions.microsoft.com> wrote in message
news:3CB78BB5-99B6-41AB...@microsoft.com...

Teethless mama

unread,
Dec 2, 2009, 7:20:01 PM12/2/09
to
=INDEX($B$1:$E$1,MATCH(MAX(B2:E2),B2:E2,0))

Jacob Skaria

unread,
Dec 2, 2009, 9:32:01 PM12/2/09
to
In cell F1 apply the below formula and copy down as required

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

--
Jacob

mrp...@gmail.com

unread,
Dec 27, 2012, 11:13:51 AM12/27/12
to
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

bijuth...@gmail.com

unread,
Feb 5, 2014, 5:17:47 AM2/5/14
to
thanks
0 new messages