+ Reply to Thread
Results 1 to 14 of 14

Delimiting with a formula

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    18

    Delimiting with a formula

    Hi hope you're are doing better that I am. My issue is breaking a text string that is separated with periods ex. I.Want.To.Separate.This.String

    I need the original string and I have separated the first two words using the following formulas

    1st column
    =IFERROR((LEFT(A3,(SEARCH(".",A3))-1)), A3)
    This would be "I"

    2nd Column
    =IFERROR((TRIM(LEFT(MID(A3,FIND(".",A3)+1,255),FIND(".",MID(A3,FIND(".",A3)+1,255))-1))),A3)
    This would be "Want"

    but after that all my formulas return a insufficient value like "To.Separate" for the third column. I also only want to go to four columns in this exercise, so an "I", "Want", "To", "Separate" individual columns. how do I finish this off?

    My third column is =IFERROR((TRIM((MID(MID(A5,FIND(".",A5)+1,255),FIND(".",MID(A5,FIND(".",A5)+1,255))+1,FIND(".",MID(A5,FIND(".",A5)+1,255)))))),A5)

    If that helps any.

    Thanks guys you do awesome work!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Delimiting with a formula

    Could you not use Data - Text to columns and use the colon as delimiter?

  3. #3
    Registered User
    Join Date
    08-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Delimiting with a formula

    Not sure if my message went through.. so just testing

    ---------- Post added at 09:45 AM ---------- Previous post was at 09:43 AM ----------

    So the reason why I'm not is due to the manual labor of the text-to-columns. I want this sheet to aggregate about 15 others possibly multiple times a day. Which turns out to be a lot of text-to-columns. This is the best way to keep the original data intact and be able to manipulate it without much effort.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Delimiting with a formula

    mabye you can post an example of your workbook.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    08-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Delimiting with a formula

    Sorry not sure what you need? Do you need a better explanation of the original post, or the use of my formulas in it?

    Sorry just trying to figure out what you need. Also I can't attach my document as it may have some sensitive data.

    Thanks

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Delimiting with a formula

    an excel file without confidentional information.

  7. #7
    Registered User
    Join Date
    08-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Delimiting with a formula

    I hope this helps. I was hoping to get up to five or six columns.

    Thanks
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Delimiting with a formula

    this is the result, when i use

    excel 2007

    data => text to column
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Delimiting with a formula

    Could you please look at the second tab? Using text to columns is easy if I want to do it once. I need to do this a minimum once a day with about 15 worksheets.

    If you look at the second tab on my example.xlxs it will show you the formulas I have used for the first two and the third being corrupted some how.

    Thanks

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Delimiting with a formula

    I that case i don't know what you are try to achieve.

  11. #11
    Registered User
    Join Date
    08-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Delimiting with a formula

    I have about 15 workbooks that I aggregate data from. So "sheet 1" would be linked to these documents. as they are updated the file will automatically update. Meaning text-to-columns is useless. I would have to do text to columns over again. Also the naming conventions can have up to 12 periods (.), but I only want the first few. That is why I named this thread delimiting with a formula.

    Thanks

    ---------- Post added at 02:21 PM ---------- Previous post was at 02:20 PM ----------

    If you look I have done it with the first 2, but after that I have a weird issue... Anyone know what I've done wrong and how I can continue a few other columns?

  12. #12
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Delimiting with a formula

    The follwoing should be generic for all instances of strings; place it in B2 and copy down and across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Søren Larsen; 08-28-2012 at 05:27 PM.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  13. #13
    Registered User
    Join Date
    08-23-2012
    Location
    Seattle
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Delimiting with a formula

    Wow! Soren you are amazing! This is exactly what I needed!

    Thank you

  14. #14
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Delimiting with a formula

    You're welcome! If all's sorted, then don't forget to mark your 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)

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