vlook up cell to show blank

PEAKCAB

New Member
Joined
Jul 16, 2018
Messages
49
Hello,

I am trying to make my invoice process easier and from my customer base populate the address cells on the invoice using vlookup which i now have sorted; however on the cells in the lookup that are blank, on the invoice it shows a 0 which i would like to show as a blank.

i am using the following formula

=IFERROR(VLOOKUP($A$22,Account!1:1048576,7,FALSE),"")

Can anybody point me in the right direction?

Regards,
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
one way

=IF(IFERROR(VLOOKUP($A$22,Account!1:1048576,7,FALSE),"")=0,"",IFERROR(VLOOKUP($A$22,Account!1:1048576,7,FALSE),""))
 
Upvote 0
glad it helped
thanks for the feedback :)
 
Upvote 0
@Aladin Akyurek
Thanks for the explanation :)
- your formula works with text but returns blank for numeric fields

An address field like postcode 73301 may contain only numerics
- is it possible to amend your formula to handle both numerics and text?
 
Upvote 0
It's meant to work for a VLOOKUP formula, assumed to return text or text numbers...

If the VLOOKUP formula is expected to return a numeric result, one can force it with...

=IFERROR(T(VLOOKUP($A$22,Account!1:1048576,7,0)&""),"")

the result ow which might require an additional step for further processing.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,865
Members
449,052
Latest member
Fuddy_Duddy

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