Hi all,
I have a lot of worksheets with identical set-up, although varying rows of data. I have a cost in one column, and a count in another. For each column with a count, I want to sum the total cost. That is, for columns D, E, F, I want to multiply the count of each item to it's cost, then get the total. For example, I have this currently:
where $C will have my cost. I used this to drag across multiple columns for one sheet.
However, the amount of rows will be increasing or decreasing and I don't want to have to change the formula each time I add or subtract something. I need a macro that can:- Look at the number of rows and insert a formula after the first blank row
- Insert a formula that sums (CostA*QuantityA)+(CostB*QuantityB)+etc for each item in the column
- Will dynamically update the formula if there are additions or deletions
Please let me know if that's not clear or if you need more specifics. I don't mind re-running the macro if/when a row is changed, so # three on the list isn't high priority.
Bookmarks