formula issue

C

chrisbmo2000

I get #value! after using vlookup.......Im trying to multiply the price per
unit by the quantity and then add the shipping the formula is
=sum(F18*B18+G18) F18 gets its info from the vlookup formula which is
=IF(ISNA(VLOOKUP(C18,Table1,3,FALSE)),"",VLOOKUP(C18,Table1,3,FALSE)) any
ideas?
 
L

Lars-Åke Aspelin

I get #value! after using vlookup.......Im trying to multiply the price per
unit by the quantity and then add the shipping the formula is
=sum(F18*B18+G18) F18 gets its info from the vlookup formula which is
=IF(ISNA(VLOOKUP(C18,Table1,3,FALSE)),"",VLOOKUP(C18,Table1,3,FALSE)) any
ideas?

It looks like you have provided a value in C18 that is not found in
the table and thus giving the cell F18 to hold "".
Trying to multiply that "" with the number in B18 gives #VALUE! error.

So, what is the expected result in the case C18 can not be found in
the table?

/Lars-Åke
 
D

Dave Peterson

First, you don't need =sum()

=f18*b18+g18
would work ok. But I'd use ()'s:
=(f18*b18)+g18

You could change the =vlookup() to return a 0 instead of text ("" is text).
=IF(ISNA(VLOOKUP(C18,Table1,3,FALSE)),0,VLOOKUP(C18,Table1,3,FALSE))

Or you could change the formula:
=(n(f18)*b18)+g18
 
C

chrisbmo2000

Thanks for the options but Im still getting #value! it says it refers to
empty cells
any more ideas?
 

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