Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Trying to find averages based on date.

I have a series of columns for date, total project hours, and hours per team
(three different teams - one column each).

what I want to do is get averages for each team hour column based on date
ranges. i.e. - during this six month period, this team averaged this number
of hours.

what I need help doing is how do I get excel to search the date column,
collect the corresponding team hours for entries that fall within a defined
range of dates, and then average those hours? I'm assuming it would be a
multiple step process and not a single formula, but my biggest roadblock is
the first step - how to collect the hours based on the date.

Any help anyone can offer will be greatly appreciated!

Thanks
Daesthai
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Trying to find averages based on date.

Maybe you could use a formula like:

=sumproduct(--(a1:a100=date(2006,1,1)),--(a1:a100<date(2006,7,1)),
--(b1:b100="team1"),(c1:c100))

Adjust the ranges to match--but you can't use whole columns.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Daesthai wrote:

I have a series of columns for date, total project hours, and hours per team
(three different teams - one column each).

what I want to do is get averages for each team hour column based on date
ranges. i.e. - during this six month period, this team averaged this number
of hours.

what I need help doing is how do I get excel to search the date column,
collect the corresponding team hours for entries that fall within a defined
range of dates, and then average those hours? I'm assuming it would be a
multiple step process and not a single formula, but my biggest roadblock is
the first step - how to collect the hours based on the date.

Any help anyone can offer will be greatly appreciated!

Thanks
Daesthai


--

Dave Peterson
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
Find Specific date in Biwwekly Based on date jlclyde Excel Discussion (Misc queries) 3 January 27th 09 09:15 PM
Lookup to find the last value based on name and date field Adam Thwaites Excel Discussion (Misc queries) 4 April 4th 07 05:15 PM
Find date and copy range based on that date avzundert Excel Programming 2 November 25th 04 10:31 AM
Need to find Min value based on date range entered Chad S Excel Worksheet Functions 0 October 28th 04 08:03 PM
Need to find Min value based on date range entered Chad S Excel Worksheet Functions 1 October 28th 04 09:52 AM


All times are GMT +1. The time now is 03:26 PM.

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

About Us

"It's about Microsoft Excel"