+ Reply to Thread
Results 1 to 7 of 7

Reformatting Raw Data

  1. #1
    Registered User
    Join Date
    05-27-2010
    Location
    St Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    Reformatting Raw Data

    I get raw data from our POS system and I need a quick way to re-sort it (will be done weekly), so i can drop it into a PowerPivot DB for analyzing/reporting. Of the raw data all I need are the rows with dates in column A, but i also need to pull the name of the employee into Column D for classes they worked.

    In the raw data the employee name (beginning) and sub totals for each employee are always offset from the data i want the same, but the amount (rows) of data for each employee varies. Example of raw data and re-sorted data attached.

    Performance Parsing.xlsx

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Reformatting Raw Data

    Try this:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Reformatting Raw Data

    Hi..

    lol.. I got beaten by one of the Masters..

    My stab at it anyway..

    Click the Button on the "Before" sheet to see the results on the "Test" sheet..

    My code is based on the assumption that:
    The Name value is the ONLY value in Column A that has a comma in it AND no word "Total" in that string..

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Reformatting Raw Data

    @apo

    1) Avoid using variable names that duplicate functions within Excel's own tool set. "Name" is a parameter used in many object tool sets, so make that unique, like MyName

    2) Avoid Selecting when you can address your commands to a sheet without selecting it.

    Change this:
    Please Login or Register  to view this content.
    To this:
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Reformatting Raw Data

    Hi..

    Thanks for the advice.. very much appreciated..

  6. #6
    Registered User
    Join Date
    05-27-2010
    Location
    St Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Reformatting Raw Data

    You are definitely a Master, that worked perfectly. Thank your for you help!
    Last edited by stinkyd; 06-15-2013 at 01:46 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Reformatting Raw Data

    Hi..

    Did you try my solution?

    JBeaucaires solution is better.. but i am just curious to see if my solution worked for you too..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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