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/120924-re-%3Dif-formula-name-error.html)

Dave F

=IF formula #NAME? error
 
Ignore my first response. instr can only be used in VBA:
http://techonthenet.com/excel/formulas/instr.php

What are you trying to do? There's probably a different function.
--
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 02:24 AM.

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