Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Metolius Dad
 
Posts: n/a
Default DATES and AVERAGES

Column A is the 365 dates of the year. Col C is the number of customers that
were in on that day. =SUMPRODUCT((WEEKDAY($A$32:$A$396)=1)*(C$32:C$396) )
tells me how many customers were in on ALL of the Sundays. What modification
do I make to tell me the AVERAGE number of customers in on a Sunday?

TIA
Sam Beardsley

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

Array-enter (CTRL-SHIFT-ENTER, or CMD-RETURN):

=AVERAGE(IF(WEEKDAY($A$32:$A$396)=1,$C$32:$C$396))

alternatively:

=SUMPRODUCT(--(WEEKDAY($A$32:$A$396)=1),(C$32:C$396))/
SUMPRODUCT(--(WEEKDAY($A$32:$A$396)=1))


In article ,
Metolius Dad wrote:

Column A is the 365 dates of the year. Col C is the number of customers that
were in on that day. =SUMPRODUCT((WEEKDAY($A$32:$A$396)=1)*(C$32:C$396) )
tells me how many customers were in on ALL of the Sundays. What modification
do I make to tell me the AVERAGE number of customers in on a Sunday?

TIA
Sam Beardsley

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



All times are GMT +1. The time now is 04:57 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"