Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have a need to test the cell contents to determine if the cel contains specific text in any of its contents. This is like using th "find" feature. I want to test if a cell contains "LA" for instance. If true then want to copy the entire cell and then compare it to another cell. Any help? Thanks Bil -- bilsw ----------------------------------------------------------------------- bilswi's Profile: http://www.excelforum.com/member.php...fo&userid=1612 View this thread: http://www.excelforum.com/showthread.php?threadid=27567 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For X = 1 to len(Cells(1,1))-1 step 1
If Mid(Cells(1,1),X,2) = "LA" then MyString = Cells(1,1).value Exit for End If Next "bilswi" wrote: I have a need to test the cell contents to determine if the cell contains specific text in any of its contents. This is like using the "find" feature. I want to test if a cell contains "LA" for instance. If true then I want to copy the entire cell and then compare it to another cell. Any help? Thanks Bill -- bilswi ------------------------------------------------------------------------ bilswi's Profile: http://www.excelforum.com/member.php...o&userid=16129 View this thread: http://www.excelforum.com/showthread...hreadid=275673 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
text fragment comparison | Excel Worksheet Functions | |||
Text comparison - closest match | Excel Discussion (Misc queries) | |||
Text comparison in adjacent cells | Excel Discussion (Misc queries) | |||
text comparison | Excel Programming | |||
If then Cell comparison with text. | Excel Programming |