+ Reply to Thread
Results 1 to 5 of 5

Data Mismatch

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    41

    Data Mismatch

    I have a spreadsheet that I am trying to turn the data from a top down look to a linear look. The data goes top to bottom and I am trying to get it to go left to right.

    Here is an example:
    Right now the data looks like this.

    Prt_Nbr Schd_Dt Schd_Qty
    12345678984 7/15/2013 0:00 0
    12345678984 7/22/2013 0:00 60
    12345678984 7/29/2013 0:00 60
    12345678984 8/5/2013 0:00 60


    I would like to see it like this

    07/15/2013 07/22/2013 07/29/2013 08/5/2013
    12345678984 0 60 60 60
    12354894987 60 20 60 60


    Ill attach some file examples too.

    Can this be done?
    Attached Files Attached Files
    Last edited by agengler11; 06-25-2013 at 11:28 AM. Reason: Text formatting off

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Data Mismatch

    Hi Agengler11,

    try the code below - it worked for me on your raw-data sheet, run the macro from the sheet with the original data.

    Please Login or Register  to view this content.
    Please click the * below if this helps
    Last edited by JasperD; 06-26-2013 at 03:33 AM.
    Please click the * below if this helps

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Data Mismatch

    I am getting a compile error

    ws2.Range("A1").PasteSpecial xlPasteValues, xlNone Application.CutCopyMode = False

    When I click debug.

    I am using Excel 2010

  4. #4
    Registered User
    Join Date
    11-08-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Data Mismatch

    Correction......Works great!!! I love you man!!

  5. #5
    Registered User
    Join Date
    11-08-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Data Mismatch

    JasperD, If I may as a question / favor. You had written the macro for me but I think the people that are sending us the XML file have changed it a bit. Can you look at it for me?

    Here is what I do.....

    1 Open Excel and click Data (From Other Sources)
    2 Choose XML File (See Attached)
    3 Run the macro.
    4 Get error message. (See Attached)

    (The macro does work if I remove the Rows with 0 in the Schd_Qty)

    Can you tell me what is wrong?

    Macro:

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by agengler11; 09-06-2016 at 11:37 AM.

+ 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