Help needed: Average of every third cell; including zeros but ignoring blanks

Tamarama91

New Member
Joined
Mar 6, 2022
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Hello!
I need to find the average of every third cell in a certain range. Until now, I used
=AVERAGE(IF(MOD(COLUMN(BR24:CP24)-COLUMN(BR24),3)=0,IF(BR24:CP24,BR24:CP24))) ( so I need to count the values in BR24, BU24, BX24 and so on).
which worked just fine.
However, I just realized that I have to include cells containing a "0" (while at the same time ignoring blank cells) as I'm working with test results.
Any suggestions on how to do this?

I also need to exclude the lowest value (only one, not all of them) - I might be able to figure that out myself afterwards, but if you already know how to do this either, I'd appreciate your help.
Thanks in advance!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I would add a helper column, put all the conditions there, and then averageif. A single formula is possible but far too cluttered.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=AVERAGE(FILTER(BR24:CP24,(MOD(COLUMN(BR24:CP24)-COLUMN(BR24),3)=0)))
 
Upvote 0
Solution
I would add a helper column, put all the conditions there, and then averageif. A single formula is possible but far too cluttered.
Thank you - haven't tried that before (I'm pretty much a newbie to Excel and while I'm able to find most solutions by googling+logical thinking, I still have to learn A LOT). Fluff's answer worked for me though, but I'll look into your recommendation for the next time!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

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