formula help

H

Heather C

I would like the cell to say something different then #N/A when it cannot
find the exact value. This is my current formula =IF(A22>0,
VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")
 
K

Kevin B

The generic fix is =IF(ISERROR(YourFormula),ErrVal,YourFormula)

Using your example it would look like the following:

=IF(ISERROR(IF(A22>0, VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")),0,IF(A22>0,
VLOOKUP(C22,UPC!A4:H1302,2,FALSE),""))

Hope this helps.
 
D

Dave Peterson

=if(isna(vlookup(...)),"",if(vlookup(...)="","",vlookup(...))))

or

=if(iserror(1/len(vlookup(...)),"",vlookup(...))

And xl2007 has added an =iferror(), too.

You'll have to add the =if(a22>0, in front of the one you need!
 
R

RagDyer

Try this:

=IF(OR(A22<=0,ISNA(MATCH(C22,UPC!A4:A1302,0))),"",VLOOKUP(C22,UPC!A4:H1302,2,0))
 

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

Commission - IF formulas 7
VLOOKUP reference issue 3
IF statement help 3
VLOOKUP returning #N/A result 2
MATCH with MAX formula question 5
need formula help 2
cells evaluation question 1
#VALUE! 10

Top