Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
I would like cell B1 to reference cell A1, and if cell A1 contains a "N" within the cells text (multiple characters) then I would like cell B1 to give a particular phrase otherwise give other text. Thanks, |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi tjh
Use the =FIND function nested within an =IF function. Your check within the IF function should look for an #N/A return from the FIND function. Excel's help or textbooks should explain these well. Regards Phil "tjh" wrote: Hello, I would like cell B1 to reference cell A1, and if cell A1 contains a "N" within the cells text (multiple characters) then I would like cell B1 to give a particular phrase otherwise give other text. Thanks, |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is this what you mean? I get a Value error with this. Not sure what I am
doing wrong. =IF(ISNA(FIND("N",A1)),"NO N",FIND("N",A1)) Thanks, "Philip J Smith" wrote: Hi tjh Use the =FIND function nested within an =IF function. Your check within the IF function should look for an #N/A return from the FIND function. Excel's help or textbooks should explain these well. Regards Phil "tjh" wrote: Hello, I would like cell B1 to reference cell A1, and if cell A1 contains a "N" within the cells text (multiple characters) then I would like cell B1 to give a particular phrase otherwise give other text. Thanks, |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Apologies I should have suggested checking for #Value! rather than #N/A!
=IF(ISERR(FIND("N",UPPER(A1))),"No N","N") I've also added UPPER, this will find "n" and "N". Regards Phil "tjh" wrote: Is this what you mean? I get a Value error with this. Not sure what I am doing wrong. =IF(ISNA(FIND("N",A1)),"NO N",FIND("N",A1)) Thanks, "Philip J Smith" wrote: Hi tjh Use the =FIND function nested within an =IF function. Your check within the IF function should look for an #N/A return from the FIND function. Excel's help or textbooks should explain these well. Regards Phil "tjh" wrote: Hello, I would like cell B1 to reference cell A1, and if cell A1 contains a "N" within the cells text (multiple characters) then I would like cell B1 to give a particular phrase otherwise give other text. Thanks, |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(ISNUMBER(SEARCH("N",A1)),"phrase 1","phrase2 ")
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "tjh" wrote in message ... Hello, I would like cell B1 to reference cell A1, and if cell A1 contains a "N" within the cells text (multiple characters) then I would like cell B1 to give a particular phrase otherwise give other text. Thanks, |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=if(countif(a1,"*N*")0,"it's there","it's not there")
or =if(isnumber(search("n",a1)),"it's there","it's not there") or =if(isnumber(Find("N",a1)),"it's there","it's not there") =find() is case sensitive. =search() is not case sensitive. The =countif() is not case sensitive, too. tjh wrote: Hello, I would like cell B1 to reference cell A1, and if cell A1 contains a "N" within the cells text (multiple characters) then I would like cell B1 to give a particular phrase otherwise give other text. Thanks, -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Character Map | Charts and Charting in Excel | |||
Excel-Match 1st text character in a string to a known character? | Excel Worksheet Functions | |||
Can I create a special character for the Character Map? | Excel Discussion (Misc queries) | |||
Character Set | Excel Discussion (Misc queries) | |||
* Character | Excel Worksheet Functions |