Please Help

TLARS

New Member
Joined
Oct 15, 2010
Messages
30
Hi,

the following formula seems to keep returning a zero when the looked up cell is blank.

=IF(A2="","",IF(ISNA(VLOOKUP(A2,'C:\New Folder\[CUSTOMER ADDRESS.xls]CUSTOMER ADDRESS'!$A$1:$Y$6000,7,FALSE)),"",VLOOKUP(A2,'C:\New Folder\[CUSTOMER ADDRESS.xls]CUSTOMER ADDRESS'!$A$1:$Y$6000,7,FALSE)))

What i need is for a blank to be returned .

any ideas?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Yes, this seems to be a 'feature' of Excel when the lookup is on another worksheet.
Your second VLOOKUP (the first establishes whether there is something to be able to find) needs to be checked for zero length.
Here is a simple example that explains:
=IF(LEN(VLOOKUP(A2,Sheet2!$A$4:$B$6,2,FALSE))=0,"",VLOOKUP(A2,Sheet2!$A$4:$B$6,2,FALSE))
 
Upvote 0
Thanks Derek,

I can't understand why in some circumstances the formula works and returns a blank but for some reason this time it was a zero.

Thanks again
 
Upvote 0
A possible reason it shows a blank sometimes is because the value found might actually be a null character "" returned from a formula. When it returns a 0, that means it is returning a cell that is truly blank (empty).

Are you wanting it to show blank for aesthetic purposes, or are you wanting it blank so you can test for blank in a calculation?
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,225
Members
452,896
Latest member
IGT

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