Cameron
2012-05-09 09:57:49 UTC
I have an Excel spreadsheet with 40 columns and 9000 rows. The columns include "Order number", "Customer name", "Item", "Amount paid", "Date of purchase", etc. Customers can add to the order optional items on top of the main item requested. Here's an example :
Line 1 : 123, Joe Smith, Car (main item), 20000 $, 2012-05-01
Line 2 : 123, Joe Smith, Sound system for the car (option), 500 $, 2012-05-01
Line 3 : 123, Joe Smith, Boat (main item), 50000 $, 2011-04-02
Line 4 : 123, Joe Smith, Insurance for the boat (option), 1000 $, 2011-04-02
Line 5 : 456, Maria Doe, Bicycle (main item), 500 $, 2012-03-08
I need to consolidate the data by order number and by type of item. For example all the "Car" data (main item + options) should be on the same record for each order. This would give :
Line 1 : 123, Joe Smith, Car (main item), 20000 $, 2012-05-01, Sound system for the car (option), 500 $, 2012-05-01
Line 2 : 123, Joe Smith, Boat, 50000 $, 2011-04-02, Insurance for the boat (option), 1000 $, 2011-04-02
Line 3 : 456, Maria Doe, Bicycle (main item), 500 $, 2012-03-08
Does anyone have an idea on how to get started ?
Thanks for your help !