Vlookup to Equal Zero?

G

Guest

Hello,

I am doing several lookups to several sheets and have attached an example
below. How can I get it to display as zero as opposed to N/A if it can't find
the item looked up?

=VLOOKUP(A2, '9-7Turnover'!$A$1:$F$32, 6, FALSE)

Thank you
 
G

Guest

Something like this should do

=if(countif('9-7Turnover'!$A$1:$A$32, A2) = 0, 0, VLOOKUP(A2,
'9-7Turnover'!$A$1:$F$32, 6, FALSE))
 
G

Guest

Pre-2007

=if(isna(your vlookup formula),0,your vlookup formula)

In v2007 it's

=iferror(your vlookup,0)
 
R

RagDyer

Try this:

=If(ISNA(Match(A2,'9-7Turnover'!$A$1:$A$32,0)),"",VLOOKUP(A2,
'9-7Turnover'!$A$1:$F$32, 6, 0))
 
G

Guest

Worked perfect, thank you!

Jim Thomlinson said:
Something like this should do

=if(countif('9-7Turnover'!$A$1:$A$32, A2) = 0, 0, VLOOKUP(A2,
'9-7Turnover'!$A$1:$F$32, 6, FALSE))
 

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

Top