Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
So if a cell contains "catsdogs" i want some code that would return
true If Cells(Rowx, Coly) = "cat" Then x = true This does not work |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If Cells(Rowx, Coly) Like "*cats*" Then
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "Shani" wrote in message oups.com... So if a cell contains "catsdogs" i want some code that would return true If Cells(Rowx, Coly) = "cat" Then x = true This does not work |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Shani,
Use the InStr function as below: If InStr(1, CStr(Cells(Rowx, Coly).Value), "catsdogs") < 0 Then x = True End If Best regards John "Shani" wrote in message oups.com... So if a cell contains "catsdogs" i want some code that would return true If Cells(Rowx, Coly) = "cat" Then x = true This does not work |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thank you
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Partial Hidden Text in a cell | Excel Discussion (Misc queries) | |||
Text Being Seen as Partial Cell Address | Excel Discussion (Misc queries) | |||
Vlookup partial text from a single cell | Excel Worksheet Functions | |||
Getting valid web searches and avoiding sites that contaminate web searches | New Users to Excel | |||
Finding Partial Text in a Cell | Excel Worksheet Functions |