In VLookup when I get a returned value of 0 can it be replaced with spaces


In VLookup when I get a  match and there is no data I get 0, is there a way to change the 0 to spaces within the vlookup?
moriniaAdvanced Analytics AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob HensonFinance AnalystCommented:
=IF(VLOOKUP(>>>)=0," ",VLOOKUP(>>>))

Rob H

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Saurabh Singh TeotiaCommented:
You can simply do this...


This will return blank value if the value is 0

ProfessorJimJamMicrosoft Excel ExpertCommented:
use this version, pleae see attached.
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Saurabh Singh TeotiaCommented:
If you want to combine with iferror then it will look like...


Rob HensonFinance AnalystCommented:
Heh Prof, hows it going?

Your suggestion could have issues. With your sample data the amount for a couple of months is zero so the correct result of the lookup would be zero but it gets converted to blank.

If the result of the lookup is blank it returns 0 which is what I think the OP is asking to resolve.

ProfessorJimJamMicrosoft Excel ExpertCommented:
Hello Rob,

long time no see :-)
all good here, having good time in summer holidays.  just floating around EE sometimes trying to solve some questions which most of the time hijacked by Saurabh :-)  just kidding

well, from what i understood from the OP's question is that if the result is zero then it should be converted to blank and that is what my formula in the attachment does i believe.
Rob HensonFinance AnalystCommented:
I get a  match and there is no data
ProfessorJimJamMicrosoft Excel ExpertCommented:
you got this right Rob
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.