If Vlookup is error ( #NA)

S

Steve

I have this formula
=IF(VLOOKUP(RU!C3,data!$E$3:$R$16,2,FALSE)>0,(VLOOKUP(RU!C3,data!$E$3:$R$16,2,FALSE)),"")

that is producing #NA if it doesn't find C3. I would instead like the result
to be blank "" when it produces an #NA


Thanks,

Steve
 
L

L. Howard Kittle

Maybe this, but not completely sure.

=IF(ISERROR(VLOOKUP([RU]Sheet1!C3,data!$E$3:$R$16,2,FALSE)),0,((VLOOKUP([RU]Sheet1!C3,data!$E$3:$R$16,2,FALSE))))

HTH
Regards,
Howard
 
T

T. Valko

What version of Excel are you using?

Try this...

=IF(COUNTIF(data!$E$3:$E$16,RU!C3),IF(VLOOKUP(RU!C3,data!$E$3:$R$16,2,0)>0,VLOOKUP(RU!C3,data!$E$3:$R$16,2,0),""),"")
 
S

Steve

As written, it was producing zeros instead of blanks, but by changing the
,0, to ,"",
It worked as I wanted.

Thanks again,

Steve

L. Howard Kittle said:
Maybe this, but not completely sure.

=IF(ISERROR(VLOOKUP([RU]Sheet1!C3,data!$E$3:$R$16,2,FALSE)),0,((VLOOKUP([RU]Sheet1!C3,data!$E$3:$R$16,2,FALSE))))

HTH
Regards,
Howard

Steve said:
I have this formula
=IF(VLOOKUP(RU!C3,data!$E$3:$R$16,2,FALSE)>0,(VLOOKUP(RU!C3,data!$E$3:$R$16,2,FALSE)),"")

that is producing #NA if it doesn't find C3. I would instead like the
result
to be blank "" when it produces an #NA


Thanks,

Steve


.
 

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