Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Text Comparison


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   Report Post  
Posted to microsoft.public.excel.programming
jd jd is offline
external usenet poster
 
Posts: 91
Default Text Comparison

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
text fragment comparison ChrisM Excel Worksheet Functions 2 January 6th 10 11:42 PM
Text comparison - closest match pappu Excel Discussion (Misc queries) 5 July 6th 06 10:41 AM
Text comparison in adjacent cells Andy Excel Discussion (Misc queries) 3 January 23rd 06 05:58 PM
text comparison skippy Excel Programming 0 May 4th 04 02:20 PM
If then Cell comparison with text. SS[_3_] Excel Programming 1 February 2nd 04 10:50 PM


All times are GMT +1. The time now is 02:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"