Help with VLookup

TripletDad

Board Regular
Joined
Oct 19, 2010
Messages
121
I need a little help with Vlookup. I'm trying to use it to populate inventory levels. The list I'm pulling data from doesn't always have all the models on it, therefore the list I'm populating gets several #N/A's....

I don't want to remove the formula from those spots, because we may get more inventory in later, however I also don't want to see all the #N/A values. I want those spots to be blank.

I created an "if" formula, but must have messed something up. Perhaps somebody can tell me where I went wrong???

(BTW: The Vlookup function works perfectly if I remove it from the "if" formula, so I don't think that is the problem. My guess is it's something with the # sign in the N/A response.)


=IF(VLOOKUP(B3,'9000'!$A:$B,2,FALSE)="#N/A"," ",VLOOKUP(B3,'9000'!$A:$B,2,FALSE))
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try this:
=VLOOKUP(B3,'9000'!$A:$B,2,0)&""
or this:
=IF(COUNTIF('9000'!$A:$B,B3),VLOOKUP(B3,'9000'!$A:$B,2,0),"")
 
Last edited:
Upvote 0
I need a little help with Vlookup. I'm trying to use it to populate inventory levels. The list I'm pulling data from doesn't always have all the models on it, therefore the list I'm populating gets several #N/A's....

I don't want to remove the formula from those spots, because we may get more inventory in later, however I also don't want to see all the #N/A values. I want those spots to be blank.

I created an "if" formula, but must have messed something up. Perhaps somebody can tell me where I went wrong???

(BTW: The Vlookup function works perfectly if I remove it from the "if" formula, so I don't think that is the problem. My guess is it's something with the # sign in the N/A response.)


=IF(VLOOKUP(B3,'9000'!$A:$B,2,FALSE)="#N/A"," ",VLOOKUP(B3,'9000'!$A:$B,2,FALSE))
Try one of these...

If you're using Excel 2007 or later:

=IFERROR(VLOOKUP(B3,'9000'!$A:$B,2,0),"")

That will trap ALL errors, not just #N/A errors.

This one will work in all versions of Excel:

=IF(COUNTIF('9000'!$A:$A,B3),VLOOKUP(B3,'9000'!$A:$B,2,0),"")
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,848
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top