Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find value in array | Excel Worksheet Functions | |||
Formula Error | New Users to Excel | |||
Formula Recalculation Error | Excel Worksheet Functions | |||
Let me save/close EXCEL if a formula I put in has an error in it | Setting up and Configuration of Excel | |||
I get error with "ROWS" in the formula - nested formula question | Excel Worksheet Functions |