+ Reply to Thread
Results 1 to 6 of 6

Need help parsing data

  1. #1
    Registered User
    Join Date
    05-17-2021
    Location
    houston
    MS-Off Ver
    Microsoft 365
    Posts
    3

    Question Need help parsing data

    Hello, I cannot figure out how to parse the data in the attached sheet.

    Column A is an ID that is tied to several sub id's listed in column B. I want to parse out each of the sub id's into a seperate column. Could have the entire entry (number + text) or just simply the account number.
    Note column B sometimes contains one account, or two... or even three. And in one case the account doesn't start with a "6" but and "8".

    I would prefer to do this without VBA if possible. Either using the text to columns functionality or the functions for "right", "left", "mid". But I just haven't cracked it ...yet.

    Thanks for any advice!

    ~N
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Need help parsing data

    Not entirely sure what your expected outcome needs to look like - could you add a few sample answers?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Need help parsing data

    Use Text to Columns to split column B using Char(10) (New Line) to columns C:E. I've left column F blank

    Then, in G1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which will spill across.

    And, in cell G3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which will spill down ... copy across.

    Adjust column widths as required.

    Copy and Paste Special Values if you want to get rid of the formulae.
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    05-17-2021
    Location
    houston
    MS-Off Ver
    Microsoft 365
    Posts
    3

    Re: Need help parsing data

    Wow. This seems to have worked perfectly.

    Can you explain how you use Char10 in the text to columns? That's my solution right there that I couldn't figure out how to do.

    Thank you!
    ~N

  5. #5
    Registered User
    Join Date
    05-17-2021
    Location
    houston
    MS-Off Ver
    Microsoft 365
    Posts
    3

    Re: Need help parsing data

    CTRL+J !!!!

    OMG that's amazing. haha.

    Thank you TMS. Brilliant as you Brits say.
    Last edited by nmoore2300; 05-18-2021 at 05:48 PM.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Need help parsing data

    You're welcome.


    Maybe over engineered if you just needed to split the data. But it was an interesting challenge .



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    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


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] parsing data
    By Parrotbob in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-11-2019, 09:38 AM
  2. [SOLVED] Data Parsing - Segregating rows data under specific column headers - Macro creation
    By harman83 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-14-2016, 04:55 PM
  3. [SOLVED] Data Parsing
    By rbpd5015 in forum Excel General
    Replies: 6
    Last Post: 07-19-2014, 10:50 AM
  4. [SOLVED] Parsing data in a UDF
    By ARGK in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2013, 05:16 PM
  5. Parsing out data after &
    By ntallman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2010, 11:10 AM
  6. Parsing Data with
    By Javier in forum Excel General
    Replies: 0
    Last Post: 06-27-2006, 01:25 PM
  7. [SOLVED] Parsing Data
    By Saxman in forum Excel General
    Replies: 4
    Last Post: 12-08-2005, 04:35 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