formula help

D

DP7

Hi I am having an issue with the formula below. It is returning a NA value
for the cells = to 302 & 366. If it is any other value the formula is
functioning fine. Any ideas as to why my formula is not working!! I have try
the vlookups on there own & they work fine.
=IF(OR(H4098=302,H4098=366),VLOOKUP(H4098,'[MOLESKIN PRINTS PRICING
061507.xls]Sheet1'!$A$3:$C$103,3,FALSE),VLOOKUP(H4098,'C:\Documents and
Settings\Dwayne\Desktop\[FABRIC PRICE LIST.xls]Sheet1'!$A$2:$E$51,3,FALSE))
 
B

Bob Phillips

That suggest that those values do not exist in the lookup table.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
D

Don Guillett

I just tested a version of your formula with good results
=IF(OR(H2=302,H2=366),VLOOKUP(H2,H4:M9,3,0),VLOOKUP(H2,H13:L17,3,0))
However, I would write it this way with the if within the lookup
=VLOOKUP(H2,IF(OR(H2=302,H2=366),H4:M9,H13:L17),3,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

Top