On the left I have the following data from a client, and need to turn into the table on the right. The date columns are dynamic - they vary weekly and the resulting pivot table should react when date columns get added/removed.

If a customer/product has more than one date column with value, the new table should have more than one row to accommodate only one value per row.

enter image description here


Actually, it appears that you want to "de-pivot" your data. Here's a situation very similar to yours, with a detailed step-by-step solution:


Yes, this is what pivot tables are for, and see here for a tutorial on how to use them. They wrote instructions better than I can.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.