How can I add more columns to a subtotal function for info only.
I subtotal the total hours in coulmn "L" at each change in PM#'s in column "B"
Then I copy the subtotal and paste it to another spreadsheet.
The subtotal info is only the PM# and the TOTAL HOURS.
I would like to capture the PM DESCRIPTION from column "C" and a few other info that doesn't change within its group of subtotals.
I currently have this subtotal function automated after a query refresh from the database.
PM# PM DESC ROUTE ASSET JOBPLAN# QTY HOURS TT HRS
46630 RTE Cooling Tower#1 2643 21762 13547 1 3 3
46630 RTE Cooling Tower#1 2643 21762 13548 4 2 8
46630 RTE Cooling Tower#1 2643 21762 13549 1 2 2
46630 RTE Cooling Tower#1 2643 21762 13550 2 2 4
46630 RTE Cooling Tower#1 2643 21762 13551 1 2 2
46630 RTE Cooling Tower#1 2643 21762 13552 1 2 2
46630 Total 21
So what's the easiest and fastest way to get the data copied?
Is it to copy the last row before the subtotal Columns "C:K" and paste down in the subtotal area, then copy/paste it over. How can I automate that?
What about adding a formula to the total hours column that would look at the column "B" in the row that the formula resides and sums all like PM#'s then I could just copy and paste the 1 row from each group? I don't know it seems simple but I am out of ideas.
This is a huge automated workbook that forecast PM's for the next 2 years and provides analysis on level loading. It has been in use for 5 years, (about 5,000 rows of data, and I'm trying to remove most of the manual munipulation from it.
Thanks
Tommy
I subtotal the total hours in coulmn "L" at each change in PM#'s in column "B"
Then I copy the subtotal and paste it to another spreadsheet.
The subtotal info is only the PM# and the TOTAL HOURS.
I would like to capture the PM DESCRIPTION from column "C" and a few other info that doesn't change within its group of subtotals.
I currently have this subtotal function automated after a query refresh from the database.
PM# PM DESC ROUTE ASSET JOBPLAN# QTY HOURS TT HRS
46630 RTE Cooling Tower#1 2643 21762 13547 1 3 3
46630 RTE Cooling Tower#1 2643 21762 13548 4 2 8
46630 RTE Cooling Tower#1 2643 21762 13549 1 2 2
46630 RTE Cooling Tower#1 2643 21762 13550 2 2 4
46630 RTE Cooling Tower#1 2643 21762 13551 1 2 2
46630 RTE Cooling Tower#1 2643 21762 13552 1 2 2
46630 Total 21
So what's the easiest and fastest way to get the data copied?
Is it to copy the last row before the subtotal Columns "C:K" and paste down in the subtotal area, then copy/paste it over. How can I automate that?
What about adding a formula to the total hours column that would look at the column "B" in the row that the formula resides and sums all like PM#'s then I could just copy and paste the 1 row from each group? I don't know it seems simple but I am out of ideas.
This is a huge automated workbook that forecast PM's for the next 2 years and provides analysis on level loading. It has been in use for 5 years, (about 5,000 rows of data, and I'm trying to remove most of the manual munipulation from it.
Thanks
Tommy