I am trying to create a dynamic array of data from a large set of data so that I can create an interactive chart. I have the following columns
I can create the dynamic array but I run into multiple rows where the first 6 columns are the same but only the last one is different. Is there a way to automatically combine those rows into one where the price is the sum of combinations where the first 6 columns are identical?
For example I have have these three rows in the array
and I want to combine them to be
I know this can all be handled by a pivot table the ultimate goal is to create an interactive chart where you can select different sets of data with just a click of a button.
Unit | Name | Region | Rep | Month | Year | Price |
I can create the dynamic array but I run into multiple rows where the first 6 columns are the same but only the last one is different. Is there a way to automatically combine those rows into one where the price is the sum of combinations where the first 6 columns are identical?
For example I have have these three rows in the array
Unit 1 | Depcdivr | East | None | Jan | 2022 | $10,000 |
Unit 1 | Depcdivr | East | None | Jan | 2022 | $20,000 |
Unit 1 | Depcdivr | East | None | Jan | 2022 | $15,000 |
and I want to combine them to be
Unit 1 | Depcdivr | East | None | Jan | 2022 | $45,000 |
I know this can all be handled by a pivot table the ultimate goal is to create an interactive chart where you can select different sets of data with just a click of a button.