Returning result as 0 from #N/A

J

JP1912

I have created a table, using vlookup, allowing me to copy in phone stats
into an excel spreadsheet, the vlookup formula uses ID's to gather the info,
in situations where the report is missing the ID the cell returns #N/A (no
info error).

Is there any formula that will turn the #N/A into a 0 or blank cell..? I
don't want to macro the sheets for this purpose if possible....

any/ all suggestions welcome..

thanks
 
P

paul.robinson

I have created a table, using vlookup, allowing me to copy in phone stats
into an excel spreadsheet, the vlookup formula uses ID's to gather the info,
in situations where the report is missing the ID the cell returns #N/A (no
info error).

Is there any formula that will turn the #N/A into a 0 or blank cell..?  I
don't want to macro the sheets for this purpose if possible....

any/ all suggestions welcome..

thanks
 
P

paul.robinson

Hi
=IF(ISNA(Vlookup(.....),0,Vlookup(.....))

where Vlookup(.....) is your lookup formula. Will return 0 if lookup
returns #N/A. If you want to return blank, use "" instead of 0.

regards
Paul
 
J

JP1912

Thanks Paul, got it sorted now...you learn something new every day...I know
how to "ISNA" now....;o)

cheers again...
 

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

Vlookup result in a message box 10
VLOOKUP return #N/A 4
Set add function ignore #N/A 1
VLOOKUP returning #N/A result 2
VLOOKUP Error N/A 2
lookup returning #N/A 5
Find #N/A in column D 2
Avoiding #N/A result 4

Top