VLOOKUP problem

TOMCAT1981

New Member
Joined
Oct 12, 2014
Messages
47
So, I have a guy that wants to populate a sheet, then wants another sheet that copies the info from the first sheet. In Sheet2 the user will fill a column that will use VLOOKUP to enter all data that was entered in Sheet1.

My formula in Sheet2
=IFERROR(VLOOKUP(A5,TABLE,4,FALSE)," ")

The formula works just fine, except if there is no data entered in that column it's calling out, it brings back a 0. How do I get it to be just blank?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
try

=if(isblank(A5),"",IFERROR(VLOOKUP(A5,TABLE,4,FALSE)," "))
 
Upvote 0
Hi,

Unless you have an Explicit reason to, Don't use a Space as a result, use "", Not " " (Blank vs. Space).
 
Upvote 0
could you post a sample of data that didn't work as expected
 
Upvote 0
Maybe
=if(A5="","",IFERROR(VLOOKUP(A5,TABLE,4,FALSE),""))
 
Upvote 0
Still returns a "0" in the cell. Also when VLOOKUP is supposed to bring back a date, if it is blank it shows up as 1/0/1900

ok, try this instead

Code:
=IF(ISBLANK(VLOOKUP(A1,TABLE,4,FALSE)),"",VLOOKUP(A1,TABLE,4,FALSE))
 
Upvote 0
Code:
=IF(VLOOKUP(A5,TABLE,2,FALSE)=0,"",VLOOKUP(A5,TABLE,2,FALSE))

You have to validate the results before accepting it.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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