ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   would like to substitute and return value of 0 for vlookup #N/A er (https://www.excelbanter.com/excel-worksheet-functions/148082-would-like-substitute-return-value-0-vlookup-n-er.html)

egols

would like to substitute and return value of 0 for vlookup #N/A er
 
I would like to return the value of 0 when the vlookup would otherwise return
the error #N/A - any suggestions?

Toppers

would like to substitute and return value of 0 for vlookup #N/A er
 
=IF(ISNA(VLOOKUP(......)),0,VLOOKUP(.......))

"egols" wrote:

I would like to return the value of 0 when the vlookup would otherwise return
the error #N/A - any suggestions?


Elkar

would like to substitute and return value of 0 for vlookup #N/A er
 
You could try this:

=IF(ISNA(VLOOKUP(...)),0,VLOOKUP(...))

Basically, if your VLOOKUP returns the N/A error, then a 0 will be
displayed, otherwise, show the results of your VLOOKUP.

HTH,
Elkar


"egols" wrote:

I would like to return the value of 0 when the vlookup would otherwise return
the error #N/A - any suggestions?


egols

would like to substitute and return value of 0 for vlookup #N/A er
 
I am not quite sure how to reply - but these postings did exactly what I
needed - thanks.

"egols" wrote:

I would like to return the value of 0 when the vlookup would otherwise return
the error #N/A - any suggestions?



All times are GMT +1. The time now is 07:50 AM.

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