Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Vlookup with Match Not Working

Can someone tell me why this keeps returning a #N/A error when it shouldn't.
I'm using match to find the lookup value. On its own, the
"G"&MATCH(B11,$G$5:$G$780,0)+4 portion of the formula correctly evaluates to
G29, but when used in the vlookup, it gives me #N/A.

=VLOOKUP("G"&MATCH(B11,$G$5:$G$780,0)+4,$G$5:$I$78 0,2,FALSE)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Vlookup with Match Not Working

=VLOOKUP(INDIRECT("G"&MATCH(B11,$G$5:$G$780,0)+4), $G$5:$I$780,2,FALSE)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Paige" wrote in message ...
| Can someone tell me why this keeps returning a #N/A error when it shouldn't.
| I'm using match to find the lookup value. On its own, the
| "G"&MATCH(B11,$G$5:$G$780,0)+4 portion of the formula correctly evaluates to
| G29, but when used in the vlookup, it gives me #N/A.
|
| =VLOOKUP("G"&MATCH(B11,$G$5:$G$780,0)+4,$G$5:$I$78 0,2,FALSE)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Vlookup with Match Not Working

Does G29 mean you want to use the string "G29" or what's in the cell G29?

You could use:
=VLOOKUP(indirect("G"&MATCH(B11,$G$5:$G$780,0)+4), $G$5:$I$780,2,FALSE)

But easier:
=index($h$5:$h$780,match(b11,$g$5:$g$780,0)+4)




Paige wrote:

Can someone tell me why this keeps returning a #N/A error when it shouldn't.
I'm using match to find the lookup value. On its own, the
"G"&MATCH(B11,$G$5:$G$780,0)+4 portion of the formula correctly evaluates to
G29, but when used in the vlookup, it gives me #N/A.

=VLOOKUP("G"&MATCH(B11,$G$5:$G$780,0)+4,$G$5:$I$78 0,2,FALSE)


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Vlookup with Match Not Working

try this idea instead to index your match
=VLOOKUP(INDEX(B2:B8,MATCH(B11,B2:B8,0))+1,C2:C8,1 ,0)

--
Don Guillett
SalesAid Software

"Paige" wrote in message
...
Can someone tell me why this keeps returning a #N/A error when it
shouldn't.
I'm using match to find the lookup value. On its own, the
"G"&MATCH(B11,$G$5:$G$780,0)+4 portion of the formula correctly evaluates
to
G29, but when used in the vlookup, it gives me #N/A.

=VLOOKUP("G"&MATCH(B11,$G$5:$G$780,0)+4,$G$5:$I$78 0,2,FALSE)



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Vlookup with Match Not Working

Thanks to all of you; got it working with the 'indirect'. Will also try the
index method too; I need to become more familiar with both of these
obviously. Again, thanks again!

"Don Guillett" wrote:

try this idea instead to index your match
=VLOOKUP(INDEX(B2:B8,MATCH(B11,B2:B8,0))+1,C2:C8,1 ,0)

--
Don Guillett
SalesAid Software

"Paige" wrote in message
...
Can someone tell me why this keeps returning a #N/A error when it
shouldn't.
I'm using match to find the lookup value. On its own, the
"G"&MATCH(B11,$G$5:$G$780,0)+4 portion of the formula correctly evaluates
to
G29, but when used in the vlookup, it gives me #N/A.

=VLOOKUP("G"&MATCH(B11,$G$5:$G$780,0)+4,$G$5:$I$78 0,2,FALSE)




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
VLookUp or HLookUp Plus Index - Match, I think??? Jay Excel Worksheet Functions 11 September 15th 06 07:26 AM
Tricky ... Pullout related rows that match a single word using Vlookup YJL Excel Discussion (Misc queries) 18 November 14th 05 08:22 AM
can vlookup be forced to make a case sensitive match? alan Excel Discussion (Misc queries) 1 September 22nd 05 12:59 PM
Match, Index, Vlookup, Large....Help Please [email protected] Excel Worksheet Functions 3 December 15th 04 01:38 PM
Match, Index, Vlookup, Large....Help Please [email protected] Excel Worksheet Functions 0 December 14th 04 11:16 PM


All times are GMT +1. The time now is 04:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"