+ Reply to Thread
Results 1 to 6 of 6

Split string by upper/lower case

  1. #1
    Registered User
    Join Date
    12-10-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Split string by upper/lower case

    Hi

    I have a number of cells that contain poorly punctuated text. Here's an example:

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliquaUt enim ad minim veniam...
    there are several instances of a lower case word being joined by the first word in the following sentence without space or punctuation.

    e.g.

    endStart

    when it should be

    end. Start

    Ideally, I'd like to split such strings into separate cells. Alternatively, inserting ". " between the lower and upper case characters might do the job.

    Any ideas how this could be done?

    Thanks
    Last edited by adam_c; 12-10-2010 at 12:58 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Split string by upper/lower case

    Assuming only one split will be necessary and that the first letter is always an uppercase, then try:

    in B1:

    Please Login or Register  to view this content.
    in C1:

    Please Login or Register  to view this content.
    this formula to be confirmed with CTRL+SHIFT+ENTER and not just ENTER.

    Where A1 contains original string.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-10-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Split string by upper/lower case

    thanks for that, will give it a shot.

    There are multiple instances however in each cell.

    e.g.

    Sentence one starts and ends hereSentence two starts and ends hereSentence three starts and ends here

    Its not a consistent number in each case

    Worst case scenario though... I guess I could run iterations of the above approach

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Split string by upper/lower case

    I was afraid of that...

    How about then this in B1:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied across as many columns as necessary and down as far as necessary.

  5. #5
    Registered User
    Join Date
    12-10-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Split string by upper/lower case

    Wow - that's awesome. Thanks

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Split string by upper/lower case

    You are welcome,

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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