+ Reply to Thread
Results 1 to 4 of 4

Find and Replace problem

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Chicago, il
    MS-Off Ver
    Excel 2003
    Posts
    3

    Find and Replace problem

    I would appreciate any help for this problem. I have used
    Selection.Replace What:= , Replacement:
    in Excel macros before, but I am having a problem trying to replace the value in a target cell with that value shortened.

    Example:

    If this is the source data in a column (red text color only highlights target) with variable, unrelated entries in column cells other than target:

    Kbkbkj-KKJKnnsk8238
    hisjsd
    ouihewwldcsd
    ABC-DEF63-123
    ABC-DEF68-123
    ABC-DEF68-124
    ABC-DEF77-125
    ABC-DEF77-125.r
    ABC-DEF77-125.st
    ABC-DEF87-126
    ABC-DEF87-127
    ABC-DEF89-128
    jshdclsdsds
    74r3034f0dkk
    uweoifwer!


    This is what I want the result to be after replacement:

    Kbkbkj-KKJKnnsk8238
    hisjsd
    ouihewwldcsd
    ABC-DEF63-123
    ABC-DEF68-123
    ABC-DEF68-124
    ABC-DEF77-125
    ABC-DEF77-125
    ABC-DEF77-125
    ABC-DEF87-126
    ABC-DEF87-127
    ABC-DEF89-128
    jshdclsdsds
    74r3034f0dkk
    uweoifwer!


    Any help would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Find and Replace problem

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-05-2013
    Location
    Chicago, il
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find and Replace problem

    Thank you very much for the reply. I did not express my problem adequately. I need to search for the pattern "ABC-DEF", check to see if there is a "." followed by any characters in the cell value and, if there is, shorten the cell value to "ABC-DEF##-###". My apologies for the lack of clarity.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Find and Replace problem

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find and Replace problem
    By Davidian in forum Excel General
    Replies: 5
    Last Post: 09-05-2012, 12:57 PM
  2. [SOLVED] Find and Replace problem
    By Lolly in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-28-2006, 11:30 PM
  3. Problem with Find and Replace
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 05:05 PM
  4. [SOLVED] Problem with Find and Replace
    By mjhill01 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  5. Problem with Find and Replace
    By mjhill01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-18-2005, 12:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1