VLOOKUP Issue???

D

Desperate

Hello,

I am trying to perform a vlookup using the correct formula, and applying it
to a large range of cells in a row. Now, when the vlookup finds the correct
match in the array it returns the correct value [yeah :)], but when there is
no matching value it returns #NA, which affects the whole spreadsheet. Is
there any way I can get it to return a zero instead????

Desperately in need of help!!
 
P

Pete_UK

Do it like this:

=IF(ISNA(your_vlookup_formula),0,your_vlookup_formula)

Hope this helps.

Pete
 
J

John C

2 ways....

One is the IFERROR function,

=IFERROR(VLOOKUP(,,,),0,VLOOKUP(,,,))

or you can do a COUNTIF function

=IF(OUNTIF(Data!$A$2:$A$100,A2)=0,0,VLOOKUP(,,,))

Where Data!$A$2:$A$100 is your lookup column of your data set
 
P

Pete_UK

Well, I presume that's a compliment !! <bg>

Thanks for feeding back.

Pete

Man oh Man you guys are the shiznit, wish I could buy you beers



Desperate said:
I am trying to perform a vlookup using the correct formula, and applying it
to a large range of cells in a row. Now, when the vlookup finds the correct
match in the array it returns the correct value [yeah :)], but when there is
no matching value it returns #NA, which affects the whole spreadsheet. Is
there any way I can get it to return a zero instead????
Desperately in need of help!!- Hide quoted text -

- Show quoted text -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top