Hi,
I am trying to calculate a specific day of the week in a range to get a weighted average.
i think it is similar to this, but cant get it work it shows #value
aw3 has this formula in
d2 has the first day of the month in
range d2 to at2 has the dates in the month with 2 weekly totals after the saturday in each week, the weeks go sunday to saturday. row 4 has the values I want to sum for each day,
days are setup in columns aw to bc with aw being sunday and bc being Saturday
hope this is all that is needed.
Hope this is of use, Rob.![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)
I am trying to calculate a specific day of the week in a range to get a weighted average.
i think it is similar to this, but cant get it work it shows #value
Code:
SUM((DAY($C$1:$AT$1)=DAY("1 "&AW$3))*($C$1:$AT$1<>0)*OFFSET($C4:$AT4,-1,0))
Code:
=IF(WEEKDAY($D$2, 2)>0, 7-WEEKDAY($D$2, 2), 0)+$D$2
d2 has the first day of the month in
range d2 to at2 has the dates in the month with 2 weekly totals after the saturday in each week, the weeks go sunday to saturday. row 4 has the values I want to sum for each day,
days are setup in columns aw to bc with aw being sunday and bc being Saturday
hope this is all that is needed.
Hope this is of use, Rob.
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)