+ Reply to Thread
Results 1 to 7 of 7

Cleaning up data

  1. #1
    Registered User
    Join Date
    06-06-2011
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    23

    Cleaning up data

    Hello everyone,
    I have a file which lists inventory by store. The problem is, the store numbers are listed first, then the inventory is listed underneath. Each item is seperated by a SKU (unique identifier). The width of each inventory/store listing is either 13 or 14 units wide.
    I am trying to get all of this information in a format which is one line tall and about 200 lines wide.
    For example:
    SKU, Description, Size, Inventory Quantity Store 00, Inventory Quantity Store 01, Inventory Quantity Store 02, ...Inventory Quantity Store 500..., etc. Please keep in mind I have about 25,000 lines of informatin in my real files, so a macro approach is preferred.
    Could you point me in the right direction? I attached a file for better understanding. Thank you!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Cleaning up data

    Why do you want to do this? Unless you specifically are wanting to do this for data entry purposes for a legacy system, you would be better off putting your data in a table, and then use a pivot table to produce the output you describe.

    Ie, Create a table with the following headings
    Sku, description, size, location, quantity.

    Then insert a pivot table.

    Would that work?

  3. #3
    Registered User
    Join Date
    06-06-2011
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Cleaning up data

    Mallycat,
    I understand what you are saying, but it won't work. The primary reason is that the format which the data is in is not recognized by excel as being a list which can be imported into a pivot table.
    What I am specifically asking is how to get it into a table format. Perhaps I wasn't clear on that. The headings are not standard and the data falls into a unique format based on how many locations have the product. I am asking how to get my data into a standard format which I could later import into a pivot table.
    Thanks!
    Last edited by aldek; 04-23-2012 at 12:39 PM. Reason: Clarification

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,666

    Re: Cleaning up data

    Try
    Please Login or Register  to view this content.
    TestWithCode.xlsm

  5. #5
    Registered User
    Join Date
    06-06-2011
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Cleaning up data

    Jindon,
    This works very well for the first 9 items, but stumbles when it gets to "Coke". The store numbers should correspond to the lines beginning with "Quantity". So, for the example "Coke", store 0 should correspond to 0, store 1 to 3, store 2 to 0, store 3 to 6, etc. I know it's strange. Also, it stops right after the coke example. If I had more lines, perhaps 25,000, how would I get this to work?
    Thank you again! I appreciate your help!

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,666

    Re: Cleaning up data

    Then you need to show me the exact result from the sample data.

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Cleaning up data

    as an option
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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