Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default =IF formula #NAME? error

Perhaps you mean in say, B1:
=IF(ISNUMBER(SEARCH("test",A1)),"Y","N")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default =IF formula #NAME? error

That works just great, thank you Max. Happy Holidays!

"Max" wrote:

Perhaps you mean in say, B1:
=IF(ISNUMBER(SEARCH("test",A1)),"Y","N")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default =IF formula #NAME? error

It works great, however, I don't understand why it wouldn't be this instead
(which by the way does NOT work)

=IF(ISTEXT(SEARCH("test",A1)),"Y","N")


"Max" wrote:

Perhaps you mean in say, B1:
=IF(ISNUMBER(SEARCH("test",A1)),"Y","N")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default =IF formula #NAME? error

Never mind, I see my folly.

Search returns a number, and IsNumber returns the true

"Max" wrote:

Perhaps you mean in say, B1:
=IF(ISNUMBER(SEARCH("test",A1)),"Y","N")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Formula Error DavidB New Users to Excel 10 October 19th 06 06:12 AM
Formula Recalculation Error uknow message board Excel Worksheet Functions 2 September 21st 06 05:33 PM
Let me save/close EXCEL if a formula I put in has an error in it Tony Borg Setting up and Configuration of Excel 1 September 2nd 06 04:13 AM
I get error with "ROWS" in the formula - nested formula question Marie J-son Excel Worksheet Functions 0 January 4th 06 01:55 PM


All times are GMT +1. The time now is 05:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"