Hi gurus,
I am trying to aggregate raw data based on if Column 4, 9, 26, and 35 are the same values.
Basically if these columns contain the same values in multiple other rows it means they can be combined into 1 row. When combining, I need to make 2 changes to represent an acurate aggregation of the data. 1st Column 11's new value would be the SUM of all the values in "Volume". And 2nd, Column 13's new value would be a weighted average Price, so (SUMPRODUCT (array 1 = col 11, array 2 = col 13) divided by SUM Col 11). And all other data in the row would stay the same, simply only aggregating these two values and simply deleting the rest, leaving me with one row.
How can I do this? I am only moderate at VBA and this seems like it needs a scripting dictionary which I am unfamiliar how to build. Would tremendously appreciate anyone's help here.
Maybe it doesn't need a scripting dictionary, whatever the case I am open to anything to get this done
A desensitized spreadsheet is attached for your reference, in reality I am dealing with thousands of rows so really need to automate this
Have a bless day!
Bookmarks