Error in vlookup formula

M

Minos

Hi,
I use the following formula on one of my spreadsheets
=VLOOKUP(C24,Input!$K$17:$R$1000,8,FALSE) but it returns a #N/A error
message. I want to change the formula that it displays a 0 (zero) instead of
#N/A. I thought of including an ISERROR statement but the formula keeps
returning the error message.

Can somebody please help?

Thanks

Minos
 
F

Franz Verga

Minos said:
Hi,
I use the following formula on one of my spreadsheets
=VLOOKUP(C24,Input!$K$17:$R$1000,8,FALSE) but it returns a #N/A error
message. I want to change the formula that it displays a 0 (zero)
instead of #N/A. I thought of including an ISERROR statement but the
formula keeps returning the error message.

Can somebody please help?

Thanks

Minos

Hi Minos,

this will show you 0 instead of #N/A:

=IF(ISNA(VLOOKUP(C24,Input!$K$17:$R$1000,8,FALSE)),0,VLOOKUP(C24,Input!$K$17:$R$1000,8,FALSE))

this will show you a blank instead of #N/A:

=IF(ISNA(VLOOKUP(C24,Input!$K$17:$R$1000,8,FALSE)),"",VLOOKUP(C24,Input!$K$17:$R$1000,8,FALSE))

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 
S

starguy

try following function.

=IF(ISNA(VLOOKUP(C24,Input!$K$17:$R$1000,8,FALSE)),0,VLOOKUP(C24,Input!$K$17:$R$1000,8,FALSE))
 
Top