IF and Vlookup blank cell

Levent21

New Member
Joined
Feb 16, 2002
Messages
3
I have column called prodID and when an ProdID is entered a vlookup is done to another sheet and enters the description, etc. When a Prod ID isn't entered the othe columns have the #N/A which should be blank. How can I make these cells blank?

This is what I have
=VLOOKUP(A13,Supplies!$A$5:Supplies!$B$30,2)

I have tried putting an IF statement like this
=IF(A13 = " ", B13 = " ", =VLOOKUP(A13,Supplies!$A$5:Supplies!$B$30,2))
but this doesn't work.

Any help appreciated, thanks
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
you could use
=IF(COUNTIF(Supplies!$A$5:$A$20,Sheet1!A13),VLOOKUP(A13,Supplies!$A$5:$B$20,2,0),"")

which will return a "" if it doesn't not exist.

Good luck
 
Upvote 0
I tried that and it does give me a blank but when when I enter the correct Id it is still blank.

=IF(A13=" "," ",VLOOKUP(A13,Supplies!$A$5:Supplies!$B$30,2))

I don't understand why that doesn't work. When the Id is entered it displays the description but when it is blank I get the #N/A.
 
Upvote 0
Ah, it works now
=IF(A13=" "," ",VLOOKUP(A13,Supplies!$A$5:Supplies!$B$30,2))

It was the A13=" "
When it should have been a A13"".

I thought it should be a blank, oh well it works..
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

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