LOOKUP Formula

K

Kimo

Hope there is someone that can help me out. I have tried everything I have
read on eliminating #N/A to appear. I've tried the =IF(ISNA(myformula),"",my
formula). Basically my formula reads like this. It's looking up Prices and
I'm trying to get a return of "$0.00".

If my service code number = 000000000 I need the unit price to remain at
$0.00 I hope this makes sense to someone. Thanks in advance

=LOOKUP(C10,cdm1107!A3:A11480,cdm1107!H3:H11480)
 
T

T. Valko

Is your service code number, 000000000, a TEXT string or is it a custom
formatted number?
 
K

Kimo

It's just a formatted number. My service code number could also be just "0"
if that would make it easier. Thanks
 
T

Teethless mama

=IF(C10=0,0,IF(ISNA(VLOOKUP(C10,cdm1107!A3:H11480,8,0)),"",VLOOKUP(C10,cdm1107!A3:H11480,8,0))
 
T

T. Valko

OK, try this:

=IF(C10=0,0,LOOKUP(C10,cdm1107!A3:A11480,cdm1107!H3:H11480))
I'm trying to get a return of "$0.00".

Format the cell as CURRENCY 2 decimal places
 
K

Kimo

Well that works but I have validation list for my service code numbers, so if
I try to change the service code number, it doesn't look up the price and
leaves it as zero.
 
T

T. Valko

I don't understand. If this is your formula:

=IF(C10=0,0,LOOKUP(C10,cdm1107!A3:A11480,cdm1107!H3:H11480))

C10 is your data validation drop down list, right?
 
K

Kimo

Would you by chance be able to take a look at this? Maybe I'm doing
something else wrong. Thanks
 
K

Kimo

Hi there,

I have tried both yours and Valko's formulas and for some reason or another
neither is working. I guess I am doing something wrong. Is there a
possibility I could email this spreadsheet to you. It's a worksheet that I
am trying to develop for work since we do everything maual at the moment. Or
if there is anyone out there that can take a look at it, I would greatly
appreciate it. Thanks Kimo
 
T

T. Valko

Alright, that's not too big but zip it (compress it) anyhow. My email has
problems with big files. I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

Include a detailed explanation of what you're tying to do.
 
T

T. Valko

BTW, I'm using Excel 2002. So if your file is in Excel 2007 format you'll
have to convert it to the xls format.
 
K

Kimo

Thanks sent it and zipped it.

T. Valko said:
Alright, that's not too big but zip it (compress it) anyhow. My email has
problems with big files. I'm at:

xl can help at comcast period net

Remove "can" and change the obvious.

Include a detailed explanation of what you're tying to do.
 
Top