Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Find and Replace Exact Match

Good Morning,

I'm feeling rather dumb this morning and have a somewhat simple question -

At the end of a rather long set of code, I have 30 find and replace features
that will essentially convert mixed sets of text/numbers into the correct
"Title". The problem I am running into is that some of the shorter sets of
mixed characters are contained within the longer sets, so those get replaced
but not in their entirety.

For instance;

Find "Red,," = Replace with "Immediate"
Find "Red,,blue" = Replace with "Possible"

So, in the current order this will create "Immediate" on the top example,
but "Immediateblue" on the second example.

Is there a way to change find and replace to find and replace if cell
matches exactly or should I just change the order around so that the longest
strings come first?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default Find and Replace Exact Match

Hi Katie,

for a better answer at least I would need more examples.

In the paticular case of
Find "Red,," = Replace with "Immediate"
Find "Red,,blue" = Replace with "Possible"


just change the order to
Find "Red,,blue" = Replace with "Possible"
Find "Red,," = Replace with "Immediate"


Maybe that is just the simplest solution.


--
Gruß

Helmut Weber, MVP WordVBA

"red.sys" & chr$(64) & "t-online.de"
Win XP, Office 2003 (US-Versions)
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
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
Find exact match. [email protected] Excel Programming 2 July 13th 06 05:52 PM
Find a not exact match using vlookup Russ B Excel Discussion (Misc queries) 1 July 27th 05 08:49 PM
find (exact match) ? mark kubicki Excel Programming 1 December 7th 04 08:10 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM


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