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

Experts,


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?
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(>>>))

Thanks
Rob H
0

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...

=VLOOKUP(A2,TABLE,2,0)&""

This will return blank value if the value is 0

Saurabh...
0
ProfessorJimJamCommented:
use this version, pleae see attached.
Book1.xlsx
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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

=iferror(VLOOKUP(A2,TABLE,2,0)&"","")

Saurabh...
0
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.

Cheers
Rob
0
ProfessorJimJamCommented:
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.
0
Rob HensonFinance AnalystCommented:
I get a  match and there is no data
0
ProfessorJimJamCommented:
you got this right Rob
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.