ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Return a text string when the result of VLOOKUP formula is #N/A (https://www.excelbanter.com/excel-worksheet-functions/103230-return-text-string-when-result-vlookup-formula-n.html)

jeremy nickels

Return a text string when the result of VLOOKUP formula is #N/A
 
Is there any way to have the result of a VLOOKUP formula be the text string
"NO" instead of #N/A when it doesn't find a match?

I'm playing around with an IF statement and the ERROR.TYPE function, but I'm
not quite getting it.


Return a text string when the result of VLOOKUP formula is #N/A
 
Hi

One approach:
=IF(ISERROR(VLOOKUP______),"ERROR",VLOOKUP_______)

Hope this helps.
Andy.

"jeremy nickels" wrote in message
...
Is there any way to have the result of a VLOOKUP formula be the text
string
"NO" instead of #N/A when it doesn't find a match?

I'm playing around with an IF statement and the ERROR.TYPE function, but
I'm
not quite getting it.




jeremy nickels

Return a text string when the result of VLOOKUP formula is #N/
 
Perfect.

Thank you.

"Andy" wrote:

Hi

One approach:
=IF(ISERROR(VLOOKUP______),"ERROR",VLOOKUP_______)

Hope this helps.
Andy.

"jeremy nickels" wrote in message
...
Is there any way to have the result of a VLOOKUP formula be the text
string
"NO" instead of #N/A when it doesn't find a match?

I'm playing around with an IF statement and the ERROR.TYPE function, but
I'm
not quite getting it.






All times are GMT +1. The time now is 11:46 AM.

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