This project is progressing and almost complete. I have attached a workbook with VBA code, much of which contributed and many thanks to TMS. You rock.
The last piece of this exercise is the aggregating the accrual amounts based on the reference criteria in Col A, and with one exception including a criteria in Col D in the DATA2 worksheet. The reference #'s in Col A provide for matching and summing the amounts into the table K2:L13.
It all works fine except for the exception. The reference number in Col A: 0160A1 must be broken into two amounts based on certain criteria found in cells in Col D where their is a starting SP. Only the SP is relevant as the rest can be anything.
So, the 0160A1 SP is the criteria for the sum. Note on DATA tab I have highlighted the rows that should form the 2nd grouping for totaling.
I was thinking since we already have the formula to get the total for 0160A1 perhaps using the existing formula minus a similar formula adding in that second criteria will get what is needed. Just a thought.
Bookmarks