VLOOKUP - 0 instead of # N/A

  • Thread starter Thread starter Jaleel
  • Start date Start date
J

Jaleel

Hi,

=VLOOKUP(G3,A:D,4,FALSE)

When I put the above formula, if the lookup_value is not available in the
table_array #N/A appears in the result. How can I modify the formula to get
the result as 0 instead of #N/A?

Can anybody help?

Jaleel
 
this may do what you want

=IF(ISNA(VLOOKUP(G3,A:D,4,FALSE)),0,VLOOKUP(G3,A:D,4,FALSE))
 
Jacob,

You are right. My cell references were wrong. Thanks a lot.

Regards,

Jaleel
 
Valko,

Wonderful!

Regards,

Jaleel

T. Valko said:
Here's another one...

=IF(COUNTIF(A:A,G3),VLOOKUP(G3,A:D,4,0),0)

--
Biff
Microsoft Excel MVP





.
 

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

Similar Threads

Return 0 instead of N/A 2
Dynamic col_index_num in VLOOKUP? 5
VLOOKUP Irk 1
Replace #N/A with 0 1
Return 0 instead of #n/a 1
VLOOKUP returning #N/A result 2
Avoiding the #N/A when performing VLOOKUP 2
#N/A 5

Back
Top