+ Reply to Thread
Results 1 to 2 of 2

replace nth occurrences of a character string within a cell...

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    91

    replace nth occurrences of a character string within a cell...

    Hello,

    Can someone tell me how i would change the 1st 2 and last 3 occurrences of "-" to "<" in a cell?

    A cell example is below. I need one equation to do this.

    XXXX-XXX-XXX-X-X-X-XXX-XX-XX.X

    Turn this into

    XXXX<XXX<XXX-X-X-X<XXX<XX<XX.X

    Any help would be appreciated!

    Thanks

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: replace nth occurrences of a character string within a cell...

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    04-25-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: replace nth occurrences of a character string within a cell...

    Thank you Kaper! Worked like a charm.

    Its gotta be one of the most confusing equations i have ever seen lol

+ 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. How Do I Replace The Last Character Of A String In A Macro?
    By pablowilks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2012, 02:21 PM
  2. Replace only one character in string.
    By ali84pk in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-24-2012, 04:39 PM
  3. Replies: 5
    Last Post: 11-19-2010, 03:49 PM
  4. Delete all occurrences of a character
    By Harleygrrl814 in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 05-11-2005, 01:06 PM
  5. [SOLVED] How do I replace * as a character in a string in Excel?
    By nicolegt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2005, 07:06 AM

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