+ Reply to Thread
Results 1 to 5 of 5

How To re-organize data

  1. #1
    Registered User
    Join Date
    03-08-2012
    Location
    toronto
    MS-Off Ver
    Excel 2007
    Posts
    3

    How To re-organize data

    Hi All,

    First post. Please help me figure out how to reorganize data I have in a spread sheet. I have a bill of materials that needs to be imported into an ERP system. However, the data is not organized in a readable manner.

    What we have is:

    Item code, component 1, QTY, Cost, component 2, QTY, cost, component 3, QTY, Cost etc....

    what is required is

    Item Code, component 1, qty, cost
    Item Code, component 2, qty, cost
    Item Code, component 3, qty, cost
    etc...


    Is there a way to write a script to re-organize the data?

    Many Thanks!
    Dan

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: How To re-organize data

    Dan

    Is your data in a single cell, or is it spread across the row?

    rylo

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: How To re-organize data

    Dan,

    rylo asked a good question, one I didn't think about. I assumed the data was spread across the row, with each comma denoting a new cell. I finished a script and so figured I would post it in case that assumption was correct (Ignore this post if it wasn't).

    Change the StartRow to the first row containing data. I set it to 2 assuming row 1 was headers and the data started in row 2.
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    03-08-2012
    Location
    toronto
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How To re-organize data

    Thanks!! that is absolutely fantastic.

    I have another small request. is it possible to skip blanks on the component level, and to add line numbers in for each component? Line number series should be 1000,2000,3000

    Thanks again!!!!!

  5. #5
    Registered User
    Join Date
    03-08-2012
    Location
    toronto
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: How To re-organize data

    Figured it out. Thanks again!

+ 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