Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Nesting Lookup Functions

Is it possible to nest an HLOOKUP in a VLOOKUP equation?

Here's what I have: =VLOOKUP(C27,A2:B5,(HLOOKUP(D27+1,INDIRECT(A2),21)

Each VLOOKUP lookup value is the start of a range that I would like to be
the first row of an HLOOKUP range. I might be going about this the wrong
way, so if you have suggestions, I'm definitely open to it!!

The objective is to provide Excel with two associated values (i.e.,
department and production value in a given range) and have Excel produce the
production value ranking. I have a ton of departments each with a range of
production values but only one specified ranking (1 - 20).

Thanks in advance!!


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default Nesting Lookup Functions

IF you are looking only for a response in the first row, why use a
VLOOKUP at all. Why not just a HLOOKUP?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default Nesting Lookup Functions



1 Jan Feb Mar Apr May
2 110 100 200 400 800 1600
3 120 200 400 800 1600 3200
4 130 400 800 1600 3200 6400
5 340 800 1600 3200 6400 12800
6 345 1600 3200 6400 12800 25600
7 350 3200 6400 12800 25600 51200
8 360 6400 12800 25600 51200 102400




Feb

130 800

~=HLOOKUP($L$87,$M$75:$R$82,INDEX($L$76:$L$82,MATC H(L89,M76:M82,0))
+1,FALSE)

I have gotten to like the combo of Match/Index better than the
lookups. try this for the combo. The 1,2,3 were column L starting at
row 75 for the formula.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 342
Default Nesting Lookup Functions

Try the index function combined with two match functions. One match gives
you the row and the other gives you the column.

e.g. =INDEX(A1:E5,MATCH(H1,A1:A5,0),MATCH(I1,A1:E1,0))

Tom
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default Nesting Lookup Functions

On Mar 23, 4:47*pm, tompl wrote:
Try the index function combined with two match functions. *One match gives
you the row and the other gives you the column.

e.g. =INDEX(A1:E5,MATCH(H1,A1:A5,0),MATCH(I1,A1:E1,0))

Tom


Very nice.

I could only get this to work IF the column match came first.
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
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM
nesting functions Rainy Excel Worksheet Functions 1 June 1st 05 04:22 AM
nesting functions Gary Brown Excel Worksheet Functions 0 May 31st 05 11:32 PM
Nesting Functions LostNFound Excel Worksheet Functions 4 March 3rd 05 09:59 PM
nesting 18 x functions Jenny Excel Worksheet Functions 3 December 2nd 04 12:01 PM


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