Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Subtotals
I have a 25,000 row spreadsheet that consists of employee
data for a 6-month period, which means the employee information repeats for many weeks. I need to average hours per employee which is easy enough using auto subtotals. However, the user wants the employee information (such as employee number, etc.) repeated in the summary record, which it does not, and I then need to delete all the rows that do not have the average summary in them. What is the easiest way to do this? I've thought of several things, but I'm sure I'm looping this code around more times than I need to. Any help will be great! Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Subtotals
Eva,
1. "I then need to delete all the rows that do not have the average summary in them." After sub totaling, hide the non-totaled rows using the "1", "2", "3" buttons at the top left of the sheet. Then using Edit | Goto | Special (button) | Visible Cells only ... copy the "visible" rows and paste them on another sheet. 2. "the user wants the employee information (such as employee number, etc.) repeated in the summary record" I have VBA code that will add your data to the sub-totaled rows. Advise if you would like to see it. Regards, Jim Cone San Francisco, CA "Eva Shanley" wrote in message ... I have a 25,000 row spreadsheet that consists of employee data for a 6-month period, which means the employee information repeats for many weeks. I need to average hours per employee which is easy enough using auto subtotals. However, the user wants the employee information (such as employee number, etc.) repeated in the summary record, which it does not, and I then need to delete all the rows that do not have the average summary in them. What is the easiest way to do this? I've thought of several things, but I'm sure I'm looping this code around more times than I need to. Any help will be great! Thanks. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Subtotals
Eva,
I'd like to take a gander, can you forward the excel file directly to: ? Sincerely, David Fixemer |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Subtotals
David,
Thanks for your interest. I wrote the code near 4 years ago and now looking it over, there are a couple things I want to change. Give me a day or two, and I will forward the code. Regards, Jim Cone San Francisco, CA "David Fixemer" wrote in message ... Eva, I'd like to take a gander, can you forward the excel file directly to: ? Sincerely, David Fixemer |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Subtotals
Another option is to create a PivotTable to summarize the data. Add
Employee Name and ID to the row area, and hours to the data area. Double-click the Hours button, and choose to Summarize by Average. After the PivotTable is created, you could copy it, and paste in another location as Values. Eva Shanley wrote: I have a 25,000 row spreadsheet that consists of employee data for a 6-month period, which means the employee information repeats for many weeks. I need to average hours per employee which is easy enough using auto subtotals. However, the user wants the employee information (such as employee number, etc.) repeated in the summary record, which it does not, and I then need to delete all the rows that do not have the average summary in them. What is the easiest way to do this? I've thought of several things, but I'm sure I'm looping this code around more times than I need to. Any help will be great! Thanks. -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Subtotals problem: Excel 2003 (not, AFAIK, the nested subtotals bug) | Excel Discussion (Misc queries) | |||
Original subtotals should not be within nested subtotals in excel | Excel Worksheet Functions | |||
Subtotals: Nested subtotals below higher subtotal | Excel Discussion (Misc queries) | |||
How do I copy an outline w/ subtotals & paste just the subtotals | Excel Discussion (Misc queries) | |||
Problem with nested subtotals, placing secondary subtotals BELOW . | Excel Discussion (Misc queries) |