averaging weekday totals

  • Thread starter Thread starter soph
  • Start date Start date
S

soph

Hi
I used the following formula to sum values for each
weekday in a sheet that contained a value for each 15min
interval for approx a month, where I only had dates (not
days) noted ->
=SUMPRODUCT((WEEKDAY($B$1:$AF$1)=AH$1)*$B2:$AF2)
I am wondering if there is anyway I can get this to
average this sum for each weekday (at each interval) in
order for me to create a day of week template?
Cheers!
Soph
 
Hi
try:
=SUMPRODUCT((WEEKDAY($B$1:$AF$1)=AH$1)*$B2:$AF2)/SUMPRODUCT((WEEKDAY($B
$1:$AF$1)=AH$1))
 
Hi,
=SUMPRODUCT((WEEKDAY($B$1:$AF$1)=AH$1)*$B2:$AF2)/
SUMPRODUCT((WEEKDAY($B$1:$AF$1)=AH$1))

You meant:

=SUMPRODUCT((WEEKDAY($B$1:$AF$1)=AH$1)*$B2:$AF2)/
SUMPRODUCT(--(WEEKDAY($B$1:$AF$1)=AH$1))

Also shorter but an ARRAY formula:

=AVERAGE(IF(WEEKDAY($B$1:$AF$1)=AH$1,$B2:$AF2))

Regards,

Daniel M.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top