Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Average of Day and Time

Ok, this is a little weird, but here's the situation:

Column A has the Day of the Week: Monday, Tuesday, etc.
Column B has the numeric Date: 6/10/2008, 6/11/2008, etc.
Column C has the numeric Time: 6:00-6:30AM, 6:30AM-7:00AM, etc.
Column D has the numbers I need to average.

What I need to do is average all the cells in column D (D2 thru D500) based
on the day and time.

For instance:
Monday 6:00-6:30AM: #
Monday 6:30-7:00AM: #
Monday 7:00-7:30AM: #

I tried subtotal and I tried an Average(IF( array formula, but I can't seem
to get anything right. Here's the formula I tried:

{=AVERAGE((IF(A2:A500="Monday",F2:F500,"")))} - gets #DIV/0

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Average of Day and Time

=AVERAGE(IF(($A$2:$A$500="Monday")*($C$2:$C$500--"06:00")*($C$2:$CA$500<=--"06:30"),F2:F500))



--
__________________________________
HTH

Bob

"Jarod" wrote in message
...
Ok, this is a little weird, but here's the situation:

Column A has the Day of the Week: Monday, Tuesday, etc.
Column B has the numeric Date: 6/10/2008, 6/11/2008, etc.
Column C has the numeric Time: 6:00-6:30AM, 6:30AM-7:00AM, etc.
Column D has the numbers I need to average.

What I need to do is average all the cells in column D (D2 thru D500)
based
on the day and time.

For instance:
Monday 6:00-6:30AM: #
Monday 6:30-7:00AM: #
Monday 7:00-7:30AM: #

I tried subtotal and I tried an Average(IF( array formula, but I can't
seem
to get anything right. Here's the formula I tried:

{=AVERAGE((IF(A2:A500="Monday",F2:F500,"")))} - gets #DIV/0



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Average of Day and Time

Thanks, I tried it, changed $CA$500 to $C$500, but still got #DIV/0 error. I
did use the CTRL-SHIFT-ENTER array commit.

"Bob Phillips" wrote:

=AVERAGE(IF(($A$2:$A$500="Monday")*($C$2:$C$500--"06:00")*($C$2:$CA$500<=--"06:30"),F2:F500))


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Average of Day and Time

That suggest you matched none.

Is the day column a day, or a date formatted to show just the day?

--
__________________________________
HTH

Bob

"Jarod" wrote in message
...
Thanks, I tried it, changed $CA$500 to $C$500, but still got #DIV/0 error.
I
did use the CTRL-SHIFT-ENTER array commit.

"Bob Phillips" wrote:

=AVERAGE(IF(($A$2:$A$500="Monday")*($C$2:$C$500--"06:00")*($C$2:$CA$500<=--"06:30"),F2:F500))




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
Average Time Karen Excel Worksheet Functions 5 September 20th 07 06:19 PM
Rolling Average, Time M.A.Tyler Excel Discussion (Misc queries) 4 February 12th 07 12:16 AM
average rate of change per given time period between 2 moments in time of a value David Virgil Hobbs Excel Worksheet Functions 1 December 19th 06 07:24 AM
Finding the average time Gadgets Excel Worksheet Functions 5 July 31st 06 09:06 PM
Average Time ATP Excel Worksheet Functions 1 July 20th 05 06:30 PM


All times are GMT +1. The time now is 05:28 PM.

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"