Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default locating cell that partly matches a text string

Hi,
Range.Find takes wildcard characters, eg:
Dim rgResult as range
set rgResult = Cells.FInd(what:="NAM*", lookin:=xlValues, lookat:=
xlWhole)
Here the '*' means any characters i.e. any string starting with NAME

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Farooq Sheri" wrote:

I have a string for example "NAM-1" in a cell in, say sheet 1. I want to
search this string in sheet 2. However sheet 2 does not have "NAM-1"; instead
it has "NAM". Is there a way to do something like Cells.Find("NAM-1") in
sheet 2 and do a partial match with "NAM".

It is possible to find "NAM" within "NAM-1", but is it possible other way
round. The method should be able to give me the cell with the string "NAM".

Thanks
Farooq

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
Extracting Text String that matches with list Sungibungi Excel Worksheet Functions 2 June 26th 08 10:22 PM
Locating Matches & Highlighting Background Old Dog Excel Programming 2 August 23rd 06 01:23 AM
Find text in a string that matches value(s) in a range [email protected] Excel Programming 8 March 15th 06 06:32 PM
Find the POSITION IN A RANGE of text in a string that matches value(s) in a range Cornell1992 Excel Programming 0 March 14th 06 07:19 PM
locating numbers in a text string Tom Ogilvy Excel Programming 0 August 31st 03 08:23 PM


All times are GMT +1. The time now is 09:38 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"