Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
here is what I got =if(a1="*preferred*","B","A")
what do I do to make it work? thanks... Steve trying to match partial text in a cell a1 might have "preferred chimichangas" or "preferred nonsense" for example... |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way:
=if(countif(a1,"*preferred*")0,"B","A") another: =if(isnumber(search("preferred",a1)),"B","A") if you want to make it case sensitive, replace "search" with "find". (=Countif() is not case sensitive) SteveC wrote: here is what I got =if(a1="*preferred*","B","A") what do I do to make it work? thanks... Steve trying to match partial text in a cell a1 might have "preferred chimichangas" or "preferred nonsense" for example... -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
great. thanks!
|
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you Dave,
You saved me hours of work!!!!! I needed the same formula as well!!! "Dave Peterson" wrote: One way: =if(countif(a1,"*preferred*")0,"B","A") another: =if(isnumber(search("preferred",a1)),"B","A") if you want to make it case sensitive, replace "search" with "find". (=Countif() is not case sensitive) SteveC wrote: here is what I got =if(a1="*preferred*","B","A") what do I do to make it work? thanks... Steve trying to match partial text in a cell a1 might have "preferred chimichangas" or "preferred nonsense" for example... -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compiling macro based on cell values | Excel Discussion (Misc queries) | |||
Instead of a negative number, I'd like to show zero... | Excel Worksheet Functions | |||
Cell color based upon cell value | Excel Discussion (Misc queries) | |||
cell color index comparison | New Users to Excel | |||
up to 7 functions? | Excel Worksheet Functions |