+ Reply to Thread
Results 1 to 6 of 6

How to add an specific X character in a text string with various different pattern?

  1. #1
    Registered User
    Join Date
    04-05-2014
    Location
    São Paulo, Brasil
    MS-Off Ver
    Excel 2007
    Posts
    12

    How to add an specific X character in a text string with various different pattern?

    Hi my dear experts,

    I got to add a "\" character in between the track number and the track title from my music library column.

    From: "01 abc" To: "01\abc"
    From: "01-abc" To: "01\abc"
    From: "01 - abc" To: "01\abc"
    From: "1-01 abc" To: "1-01\abc"
    From: "1-01-abc" To: "1-01\abc"
    From: "1-01 - abc" To: "1-01\abc"


    See below how they are supposed to be rewritten in the column B.

    tbl.jpg
    Last edited by dvpe; 04-06-2014 at 02:30 PM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: How to add an specific X character in a text string with various different pattern?

    Are all titles three characters as in your examples??
    Gary's Student

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,255

    Re: How to add an specific X character in a text string with various different pattern?

    Take a look at this.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to add an specific X character in a text string with various different pattern?

    Try this one

    =SUBSTITUTE(IF(FIND(" ",TRIM(SUBSTITUTE(A1,"-"," ")))=3,SUBSTITUTE(TRIM(SUBSTITUTE(A1,"-"," "))," ","\"),SUBSTITUTE(TRIM(SUBSTITUTE(A1,"-"," "))," ","-",1))," ","\")

    A
    B
    1
    01 abc 01\abc
    2
    01-abc 01\abc
    3
    01 - abc 01\abc
    4
    1-01 abc 1-01\abc
    5
    1-01-abc 1-01\abc
    6
    1-01 - abc 1-01\abc
    Last edited by AlKey; 04-06-2014 at 04:10 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    04-05-2014
    Location
    São Paulo, Brasil
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: How to add an specific X character in a text string with various different pattern?

    no, there aren't... matter of fact they stand for songs titles from my music library.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to add an specific X character in a text string with various different pattern?

    Thank you for the feedback!

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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. search for specific text pattern within string
    By nzdzy2 in forum Excel General
    Replies: 3
    Last Post: 10-10-2011, 11:47 AM
  2. Replies: 3
    Last Post: 04-17-2010, 05:02 AM
  3. Replies: 2
    Last Post: 11-15-2006, 11:04 PM
  4. [SOLVED] [SOLVED] check if the text string start with a specific character
    By September21 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-22-2005, 11:05 AM
  5. Changing a specific character type in text string
    By cianid in forum Excel General
    Replies: 1
    Last Post: 03-20-2005, 07:35 PM

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