+ Reply to Thread
Results 1 to 8 of 8

How to Text to Columns with non unique characters

  1. #1
    Registered User
    Join Date
    03-31-2014
    Location
    Berwick, ME
    MS-Off Ver
    Excel 2010
    Posts
    15

    How to Text to Columns with non unique characters

    I need to split database downloads into Unit Name and date. Unfortunately the data is separated by " - " but the Unit name may also have a hyphen.

    See attached file with data sample, results needed and the complete unit name table.

    Any assistance is greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,398

    Re: How to Text to Columns with non unique characters

    Hi there. How does this look?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,398

    Re: How to Text to Columns with non unique characters

    If you need to use the dtes for furether calculatons, try this
    =--TRIM(TRIM(RIGHT(SUBSTITUTE(A3,"-",REPT(" ",25)),25))+0)

    instead (made more awkward by US versus UK date formats. It works OK for me and SHOULD work for you).

  4. #4
    Registered User
    Join Date
    03-31-2014
    Location
    Berwick, ME
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: How to Text to Columns with non unique characters

    Hi Glenn,

    The date works great!

    One other point that I did not mention is that the first characters of the data download changes, i.e., ( 7764 ) Tanya Skrivanic, represents a unique number but the name and number change. It could be ( 999 ) Glen Kennedy, Unfortunately that was not in the data sample.

    Lastly, in your file column F, the "( 7763) Tanya Skrivanic - " should not be in the results. Just "Barnacle". How would that change the formula given the varying length of the name and number?

    I've never used trim and substitute, only Len. Thank you ever so much for the education.

  5. #5
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: How to Text to Columns with non unique characters

    Hi,

    For date is suffice this formula : =--TRIM(RIGHT(SUBSTITUTE(A3,"-",REPT(" ",25)),25))

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,398

    Re: How to Text to Columns with non unique characters

    Dohh! Try this instead. (I really should READ what people ask more slowly!!).
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-31-2014
    Location
    Berwick, ME
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: How to Text to Columns with non unique characters

    Thank you! It will take me 2 days to figure out how it works, but it works beautifully!

    FYI, I'm just as guilty of not reading the entire question before responding. I think it's inherent to computer users...

    Have a great afternoon.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,398

    Re: How to Text to Columns with non unique characters

    Thanks for the Reputation that you have added. It's much appreciated. If that takes care of your original question, please select Thread Tools from the menu link above and mark this 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. Counting occurences of unique text between two columns
    By Nina970 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2013, 02:34 AM
  2. text to columns - selecting the last 8 characters of text
    By mmcnellie in forum Excel General
    Replies: 3
    Last Post: 07-26-2013, 03:38 AM
  3. Filtering Multiple Columns Containing Specific Text/Characters
    By abbeycrombie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2013, 03:40 PM
  4. Replies: 3
    Last Post: 04-05-2012, 04:58 PM
  5. Export multiple columns to single column text files including special characters
    By mike4uuu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2011, 04:54 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