Hey, below is the code I have to combine entries that have the same column A & B combination. It is based on the fact that I have 11 columns of data (13 columns total). I was wondering if there is a way to make it more dynamic, so if there are more or less columns of data it can adjust for that. I have marked the areas that would need to be changed.
What the Macro does is basically do a SUMIFS statement to the right of the data, copy the values back and then erase duplicate rows,
A:M is the 13 original columns (2 title columns, 11 data columns), I'm thinking something like a column count (if that exists?)
N is the first free column (13 + 1) (column count plus 1)
X = (13+13-2) (column count, plus column count, minus 2)
Thanks for the help!
Bookmarks