Hello
I have a Excel sheet containing a key (column A) and some columns (fixed value or amount).
I want the macro to suppress duplicates (keys) and at the same time sum amount for duplicates
Ex.
CCSA07194EUR M03/2014 EUR I 201403 CCSA07 -1033985
CCSA07220EUR M03/2014 EUR I 201403 CCSA07 -37840,17
CCSA07220EUR M03/2014 EUR I 201403 CCSA07 -37840,17
CCSA07220EUR M03/2014 EUR I 201403 CCSA07 -37840,17
expected results
CCSA07194EUR M03/2014 EUR I 201403 CCSA07 -1033985
CCSA07220EUR M03/2014 EUR I 201403 CCSA07 -113520,51 (sum of : -37840,17 x 3)
Due to number of lines (30.000), I tried to use the dictionary with function in Excel.
I created 2 dictionaries (one containing fixed values), another one for amount.
When transposing the value, column A gets the key (ok) but error message therefore I don't have any values for column B/C the values and column D not the sumed amounts
Attached the Excel file (not the 30.000 lines, just a test case with a couple of lines) including the macro.
Thanks in advance for any idea how to solve this.
Bookmarks