+ Reply to Thread
Results 1 to 9 of 9

Text Split with no Delimiter

  1. #1
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Text Split with no Delimiter

    Dear all

    I have encountered a problem with splitting the text without a delimiter

    I have a list of names with their salutation, however, the colleague did not make a "space"after the salutation

    Example

    DrTsangEric
    ProfEricTsang
    MaryGoMs
    TomhankMr

    How can i split them as
    Salutation Firstname Lastname as Dr Tsang Eric

    Appreciate if you can enlighten me

    Eric

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Text Split with no Delimiter

    because there is no consistency in the location of the Salutation, the best I can offer is

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    E
    1
    Column1 Column1.1 Column1.2 Column1.3
    2
    DrTsangEric Dr Tsang Eric
    3
    ProfEricTsang Prof Eric Tsang
    4
    MaryGoMs Mary Go Ms
    5
    TomhankMr Tomhank Mr
    Sheet: Sheet1

    This is accomplished with Power Query

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Text Split with no Delimiter

    Alan

    Thanks but is there a formula instead?

    Eric

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Text Split with no Delimiter

    Because there is no consistency to the source data, I cannot think of any other way. There may be someone else out there who may be able to manage this.

    EDIT: Because you are using O365, you have Flash Fill available to you. With that function found on the Data Tab you can get to this:

    Excel 2016 (Windows) 64 bit
    A
    B
    1
    Column1 Column2
    2
    DrTsangEric Dr Eric Tsang
    3
    ProfEricTsang Prof Tsang Eric
    4
    MaryGoMs Mary Ms Go
    5
    TomhankMr Tomhank Tomhank
    Sheet: Sheet1
    Last edited by alansidman; 11-05-2022 at 11:45 AM.

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

    Re: Text Split with no Delimiter

    Here's a formula-based approach.

    It's not perfect either. After running the formulae, use copy/paste values on all cells and then delete column C.
    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

  6. #6
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Text Split with no Delimiter

    Dear Alan

    You have inspired me.

    I load all data into Power Query, and then use "column by example" by inputting

    Dr Tsang Eric
    Ms Mary Go

    Rest it will convert ( i still do some manual work)

    Thanks a lot

    Eric

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,396

    Re: Text Split with no Delimiter

    Administrative Note

    ... please don't ignore contributors to your thread - acknowledge all solutions offered, even if they don't meet your requirements. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Text Split with no Delimiter

    Glenn

    Thanks for your advice too

    Eric

  9. #9
    Forum Contributor
    Join Date
    12-06-2015
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    513

    Re: Text Split with no Delimiter

    Ali

    thanks, i have thanks Glenn as well

    Eric

+ 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. [SOLVED] Regex - Split string at fixed delimiter but keep "Groups" with same delimiter together
    By bakerman2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-27-2021, 02:22 AM
  2. [SOLVED] Split text with delimiter by using formula
    By alferd324 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-02-2021, 06:46 PM
  3. [SOLVED] Formula to split text based on a specific delimiter
    By Roibeard in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-09-2020, 09:00 AM
  4. [SOLVED] Split Text with Varying Delimiter
    By richardking in forum Excel General
    Replies: 15
    Last Post: 08-06-2018, 09:55 PM
  5. [SOLVED] Split text and number field with no delimiter
    By lasario in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-14-2014, 07:06 PM
  6. Split Text using numbers as Delimiter.
    By ksalsaadi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-26-2012, 12:42 AM
  7. Replies: 3
    Last Post: 10-27-2010, 03:11 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