Average of every 7th cell in a row

ashleyjmetcalfe

New Member
Joined
Jun 14, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Sorry I have looked at other posts and seem to be incapable of reconciling them. So I would ask someone to take pity on me and write this formula for me!

I am trying to do an attendance tracker for school. I want to get an average of every 7th day so i can do monday average, tuesday etc.

Monday's run from C23 to MH23. The average should include 0's but disregard any blank values. (When the register is taken it will be 1 = present, 0= absent. blank cell means it is for a future week!)

Can someone help me please!

Thanks,

Ashley
 

Attachments

  • Capture.PNG
    Capture.PNG
    38.9 KB · Views: 16

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Perhaps something like this, array confirmed with Ctrl Shift Enter.
Excel Formula:
=AVERAGE(IF(WEEKDAY($C$21:$MH$21)=2,$C23:$MH23))
Changing the weekday number according to the day that you want the average for. =2 for Monday through to =6 for Friday.
 
Upvote 0
@jasonb75 I don't believe the above ignores the blank cells.
I'm not entirely sure if @ashleyjmetcalfe is wanting an average for an individual or for a group of individuals?

Here is another approach that could adapt either way.

MRXLMAY21.xlsm
ABCDEFGHIJKLMNOPQRSTUV
11MonTueWedThurFrid
12Single Line Average100.00%50.00%0
13Range Average100.00%75.00%50.00%
14
15
16
17
18
19
20
2128 Jun29 Jun30 Jun01 Jul02 Jul05 Jul06 Jul07 Jul08 Jul09 Jul12 Jul13 Jul14 Jul15 Jul16 Jul
22
2311011100
2411111111
25
Sheet7 (2)
Cell Formulas
RangeFormula
C12C12=IFERROR(SUMPRODUCT((WEEKDAY($C$21:$MH$21)=2)*($C23:$MH23))/SUMPRODUCT((WEEKDAY($C$21:$MH$21)=2)*(ISNUMBER($C23:$MH23))),"")
D12D12=IFERROR(SUMPRODUCT((WEEKDAY($C$21:$MH$21)=3)*($C23:$MH23))/SUMPRODUCT((WEEKDAY($C$21:$MH$21)=3)*(ISNUMBER($C23:$MH23))),"")
E12E12=IFERROR(SUMPRODUCT((WEEKDAY($C$21:$MH$21)=4)*($C23:$MH23))/SUMPRODUCT((WEEKDAY($C$21:$MH$21)=4)*(ISNUMBER($C23:$MH23))),"")
C13C13=IFERROR(SUMPRODUCT((WEEKDAY($C$21:$MH$21)=2)*($C23:$MH33))/SUMPRODUCT((WEEKDAY($C$21:$MH$21)=2)*(ISNUMBER($C23:$MH33))),"")
D13D13=IFERROR(SUMPRODUCT((WEEKDAY($C$21:$MH$21)=3)*($C23:$MH33))/SUMPRODUCT((WEEKDAY($C$21:$MH$21)=3)*(ISNUMBER($C23:$MH33))),"")
E13E13=IFERROR(SUMPRODUCT((WEEKDAY($C$21:$MH$21)=4)*($C23:$MH33))/SUMPRODUCT((WEEKDAY($C$21:$MH$21)=4)*(ISNUMBER($C23:$MH33))),"")


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top