ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   formula help (https://www.excelbanter.com/excel-worksheet-functions/147258-formula-help.html)

DP7

formula help
 
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:\Doc uments and
Settings\Dwayne\Desktop\[FABRIC PRICE LIST.xls]Sheet1'!$A$2:$E$51,3,FALSE))

Bob Phillips

formula help
 
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)



"DP7" wrote in message
...
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:\Doc uments and
Settings\Dwayne\Desktop\[FABRIC PRICE
LIST.xls]Sheet1'!$A$2:$E$51,3,FALSE))




Don Guillett

formula help
 
I just tested a version of your formula with good results
=IF(OR(H2=302,H2=366),VLOOKUP(H2,H4:M9,3,0),VLOOKU P(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)
--
Don Guillett
SalesAid Software

"DP7" wrote in message
...
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:\Doc uments and
Settings\Dwayne\Desktop\[FABRIC PRICE
LIST.xls]Sheet1'!$A$2:$E$51,3,FALSE))



DP7

formula help
 
thank u bob I fell so dumb. I guess not enough coffe yet

"Bob Phillips" wrote:

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)



"DP7" wrote in message
...
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:\Doc uments and
Settings\Dwayne\Desktop\[FABRIC PRICE
LIST.xls]Sheet1'!$A$2:$E$51,3,FALSE))






All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com