Jun 06 2023 07:01 AM
Hi, I am trying to work out the average of the yellow cells but do not know how to specify a range of multiple cells; I also need the average to exclude zeros.
Jun 06 2023 07:11 AM
Jun 06 2023 07:19 AM
=AVERAGE(IF(MOD(COLUMN(B:L),4)=0,B2:L2))
You can try this formula. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021.
Jun 06 2023 09:02 AM - edited Jun 06 2023 11:29 AM
Edit: didn't see the <>0 part of the request. Formula revised.
Perhaps this:
=AVERAGEIFS(C2:I2,C2:I2,"<>0",C1:I1,"£/week")
Jun 06 2023 09:20 AM
@Patrick2788 that is probably the most straight forward but OP requested not =0 also so maybe:
=AVERAGEIFS(C2:I2,C$1:I$1,"£/week",C2:I2,"<>0")