PC Review


Reply
Thread Tools Rate Thread

Can I nest Max in HLOOKUP?

 
 
=?Utf-8?B?Q2VjaWxpYQ==?=
Guest
Posts: n/a
 
      13th Sep 2006
Hi--

I tried to use the following:

=HLOOKUP((MAX(G6:J6)),G6:J6,2:2,FALSE)

What I want to do is pull the highest value in range G6:J6 and have that be
the lookup value to return the column heading that matches the highest value.

Here's what the table looks like:

Age 18 Age 35 Age 55 Age 65 (Row 2)

91 88 117 131 (Row 6)

I would want to identify 131 as the highest value and have the formula
return Age 65.

Thanks so much for your help!

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      13th Sep 2006
I'd use:
=index(G2:J2,match(max(g6:j6),g6:j6,0))

Cecilia wrote:
>
> Hi--
>
> I tried to use the following:
>
> =HLOOKUP((MAX(G6:J6)),G6:J6,2:2,FALSE)
>
> What I want to do is pull the highest value in range G6:J6 and have that be
> the lookup value to return the column heading that matches the highest value.
>
> Here's what the table looks like:
>
> Age 18 Age 35 Age 55 Age 65 (Row 2)
>
> 91 88 117 131 (Row 6)
>
> I would want to identify 131 as the highest value and have the formula
> return Age 65.
>
> Thanks so much for your help!


--

Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you combine VLOOKUP with a nest HLOOKUP? =?Utf-8?B?UENveW5l?= Microsoft Excel Misc 3 3rd Jul 2007 08:06 PM
One Nest Too Many - Help! SamuelT Microsoft Excel Discussion 6 23rd Sep 2005 11:27 PM
Re: More than 7 nest for YTD sum 2rrs Microsoft Excel Misc 0 22nd Jul 2003 03:59 AM
Re: More than 7 nest for YTD sum Intruder9 Microsoft Excel Misc 0 21st Jul 2003 06:41 PM
Re: More than 7 nest for YTD sum Anon Microsoft Excel Misc 0 21st Jul 2003 04:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:05 AM.