youngEIT
Civil/Environmental
- Jan 4, 2008
- 87
I have data in spreadsheet in the following format:
Col-1 Col-2 Col-3
1 DA1 1215
2 DA1 3256
3 DA2 38551
4 DA3 151
and so on.....
COl-1 is ID #, Col-2 is drainage area and COl-3 is area (sq.ft)
I can sort these by DA, then subtotal by Col-2 to find out the total area of each item in Col-2. I also came up with a macro which will automate the sort-subtotal in a click of a button. but when i add another row of data, the macro will left that out in the calculation. is there a way to ask the macro to perform the calculation for the selected cells (rows and columns), so that when I add a bunch of extra rows of data into the above list, I can select the new "calculation-area" and then run the macro?
Regards
Col-1 Col-2 Col-3
1 DA1 1215
2 DA1 3256
3 DA2 38551
4 DA3 151
and so on.....
COl-1 is ID #, Col-2 is drainage area and COl-3 is area (sq.ft)
I can sort these by DA, then subtotal by Col-2 to find out the total area of each item in Col-2. I also came up with a macro which will automate the sort-subtotal in a click of a button. but when i add another row of data, the macro will left that out in the calculation. is there a way to ask the macro to perform the calculation for the selected cells (rows and columns), so that when I add a bunch of extra rows of data into the above list, I can select the new "calculation-area" and then run the macro?
Regards