LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Find text in a string that matches value(s) in a range

I have a list of codes that look like this:

cjm-dtm_6a184
342_cjm-fmu323_engine
etc.

I would like a simple formula that would check to see if a string, in
this case "cjm-" exists in the code. Fairly easy to do using the "find"
function, but I'm running into the following problem:

My list of strings-to-look-for has grown such that I am unable to nest
enough "IF" statements within the function to check for all of them.

Does anybody know of the best way to write a macro that would check if
a cell value includes values from a range? Ideally the output would be
the first string found from the left side of the code.

Thanks

 
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
how do i find multiple matches of one data item in an excel range DivaHouston Excel Discussion (Misc queries) 1 January 7th 08 02:43 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM
can you find specific text in a string ignoring any other text chriscp Excel Discussion (Misc queries) 1 September 18th 05 09:54 PM
backwards find function to find character in a string of text Ashleigh K. Excel Programming 1 January 14th 04 04:36 PM


All times are GMT +1. The time now is 01:40 AM.

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"