Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is there a way of writing the following?
=if ( cell 'contains' x , then write "y" , else write "n" ) The cell contains text. Suggestions appreciated, thanks. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Andrew:
If InStr(cellvalue,x)0 Then MSGBOX("Y") else MSGBOX("N") endif -- Gary's Student gsnu200705 "Andrew" wrote: Is there a way of writing the following? =if ( cell 'contains' x , then write "y" , else write "n" ) The cell contains text. Suggestions appreciated, thanks. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(ISNUMBER(FIND("x",A1)),"y","n")
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Andrew" wrote in message ... Is there a way of writing the following? =if ( cell 'contains' x , then write "y" , else write "n" ) The cell contains text. Suggestions appreciated, thanks. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try something like this:
For a value (or blank) in A1 This formula tests if A1 contains the letter "x" B1: =IF(COUNTIF(A1,"*x*"),"y","n") Does that help? *********** Regards, Ron XL2002, WinXP "Andrew" wrote: Is there a way of writing the following? =if ( cell 'contains' x , then write "y" , else write "n" ) The cell contains text. Suggestions appreciated, thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Display contents of cell in another cell as part of text string? | New Users to Excel | |||
substitute the filename in a cell reference with a string in another cell. | Excel Discussion (Misc queries) | |||
to search for a string and affect data if it finds the string? | Excel Worksheet Functions | |||
Copy a string text to cell if another cell not empty | Excel Discussion (Misc queries) | |||
IN AN IF FORMULA COPY STRING OF DATA IF A CELL IS CORRECT | Setting up and Configuration of Excel |