Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
If Statement
How do I write an "IF" statement to find a cell that has the letter "G" in it.
Example: HW-G12345 The letter "G" won't always be in the exact spot in each cell. Any help would be greatly appreciated. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
If Statement
Try this
=IF(ISERROR(FIND("G",A1,1)),"no","yes") Change A1 to whatever cell the value is that you want to find G in. "Secret Squirrel" wrote: How do I write an "IF" statement to find a cell that has the letter "G" in it. Example: HW-G12345 The letter "G" won't always be in the exact spot in each cell. Any help would be greatly appreciated. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
If Statement
What exactly do you mean by find?
Do you want the cell address? Do you want data returned from an adjoining column on the same row? And where exactly are you searching? A column? An array/ The entire sheet? And will there be duplicates, where you'll want more then a single return? How about more info. -- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "Secret Squirrel" wrote in message ... How do I write an "IF" statement to find a cell that has the letter "G" in it. Example: HW-G12345 The letter "G" won't always be in the exact spot in each cell. Any help would be greatly appreciated. |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
If Statement
Perfect! Thanks!
"AKphidelt" wrote: Try this =IF(ISERROR(FIND("G",A1,1)),"no","yes") Change A1 to whatever cell the value is that you want to find G in. "Secret Squirrel" wrote: How do I write an "IF" statement to find a cell that has the letter "G" in it. Example: HW-G12345 The letter "G" won't always be in the exact spot in each cell. Any help would be greatly appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If statement | Excel Discussion (Misc queries) | |||
appending and IF statement to an existing IF statement | Excel Worksheet Functions | |||
Help With If Statement | Excel Worksheet Functions | |||
If statement and Isblank statement | Excel Worksheet Functions | |||
Help please, IF statement/SUMIF statement | Excel Worksheet Functions |