#1   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Averaging subtotals

I have four columns: date (A), number of hours (B), amount charged (C), and
hourly rate (D). Column D is column C divided by column B. I can have
multiple rows with the same date. I want to subtotal column B and column C by
date and then divide the subtotal of column C by the subtotal of column B to
get the average hourly rate for each date. I can't see how to do this. Can
someone help me? Thanks!

Dan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Averaging subtotals

If your data is in date order and has a heading row at the top, then
you can apply Data | Subtotals to obtain subtotals at each change of
date. Then you can apply autofilter to column A and select Custom |
Contains | Total and this will display only the subtotals rows. Enter
a formula in column E to obtain your average rate and then copy this
down the visible cells. Finally, you can select All on the filter pull-
down.

Hope this helps.

Pete

On Mar 24, 4:46 pm, Dan wrote:
I have four columns: date (A), number of hours (B), amount charged (C), and
hourly rate (D). Column D is column C divided by column B. I can have
multiple rows with the same date. I want to subtotal column B and column C by
date and then divide the subtotal of column C by the subtotal of column B to
get the average hourly rate for each date. I can't see how to do this. Can
someone help me? Thanks!

Dan



  #3   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Averaging subtotals

Pete,

Thanks very much. Your suggestions were very helpful.

Dan

"Pete_UK" wrote:

If your data is in date order and has a heading row at the top, then
you can apply Data | Subtotals to obtain subtotals at each change of
date. Then you can apply autofilter to column A and select Custom |
Contains | Total and this will display only the subtotals rows. Enter
a formula in column E to obtain your average rate and then copy this
down the visible cells. Finally, you can select All on the filter pull-
down.

Hope this helps.

Pete

On Mar 24, 4:46 pm, Dan wrote:
I have four columns: date (A), number of hours (B), amount charged (C), and
hourly rate (D). Column D is column C divided by column B. I can have
multiple rows with the same date. I want to subtotal column B and column C by
date and then divide the subtotal of column C by the subtotal of column B to
get the average hourly rate for each date. I can't see how to do this. Can
someone help me? Thanks!

Dan




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtotals: Nested subtotals below higher subtotal RobN Excel Discussion (Misc queries) 1 July 20th 06 10:04 PM
Subtotals adding a description next to the subtotals Jeanne Excel Worksheet Functions 1 April 9th 06 01:08 AM
How do I copy an outline w/ subtotals & paste just the subtotals av Excel Discussion (Misc queries) 1 June 21st 05 12:35 AM
Problem with nested subtotals, placing secondary subtotals BELOW . Dawn Cameron Excel Discussion (Misc queries) 1 June 3rd 05 11:13 PM
why are nested subtotals coming out below outer subtotals? Hendy Excel Worksheet Functions 2 January 18th 05 09:09 PM


All times are GMT +1. The time now is 05:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"