ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   =IF formula #NAME? error (https://www.excelbanter.com/excel-worksheet-functions/120925-re-%3Dif-formula-name-error.html)

Dave F

=IF formula #NAME? error
 
XL is returning the NAME error because it doesn't recognize the function instr

Is that a UDF? If so check to see if the code is properly formatted/debugged.

Dave
--
Brevity is the soul of wit.


"Access101" wrote:


All three of these are wrong, I can't think of a fourth:

=If(instr(A1, "test"), "Y", "N")
=If(instr(A1, "test")=-1, "Y", "N")
=If(instr(A1, "test")=True, "Y", "N")

Cell A1 contains: This is a test



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

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