I have a spreadsheet where I have entered the formula =SUM(I1)-L1 in Column J (this formula is then copied down Column J to match the number of rows in Column I & L).
What I want to do is create VBA code that will automatically subtract Column L from Column I with the result in J, but I'm unsure how to do this when the number of rows is different from spreadsheet to spreadsheet. I then need a subtotal of Column J to show at the end of the column.
I've attached a spreadsheet showing what it looks like after the calculation.
Any help would be much appreciated!
Bookmarks