Average every 4th cell?

uhhhhhhhhben

New Member
Joined
Feb 3, 2022
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
I'm trying to average the data from every 4th column between the ranges C4:AY4

I've tried using the formula {=AVERAGE(IF(MOD(C4:AY4),4)=3, IF(...) } but I can't seem to figure out how to complete the last bit of the formula

Any solutions would be great even if it doesn't use that formula. Thanks :)
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi & welcome to MrExcel.
How about
Excel Formula:
=AVERAGE(FILTER(C4:AY4,MOD(COLUMN(C4:AY4),4)=3))
 
Upvote 0
I am trying to do similar but with every 7th cell in a row. I assume the function would look like
=AVERAGE(FILTER(C4:AY4,MOD(COLUMN(C4:AY4),7)=6))
but it gives me a number that does not reflect the average based on manually averaging each cell.
 
Upvote 0
Which columns are you trying to average?
 
Upvote 0
In my example above I was using the OPs cells range for simplicity's sake.
I am looking at a years worth of daily volume data that is all presented in a single row ( so 365 cells total in the row)
I am looking to find the average for each day of the week(why I need every 7 cell) by quarter and then for the entire year.
Currently, my first quarter cell range is B3:CH3 which would correspond to the first Saturday of the quarter and the last Saturday of the quarter.
The full cell range representing the year is B3:NB3
 
Upvote 0
That doesn't answer my question.
If you wanted to average columns B, I, P etc you would use
Excel Formula:
=AVERAGE(FILTER(B3:NB3,MOD(COLUMN(B3:NB3),7)=2))
 
Upvote 0
Correct, if I want to find the average of every Saturday in the first quarter, B3 is the first Saturday and NB3 is the last Saturday of the first quarter.
So I would need to average row 3 in columns =AVERAGE(B3,I3,P3,W3,AD3,AK3,AR3,AY3,BF3,BM3,BT3,CA3,CH3)
If I want to do the same for Monday D3:CJ3
I would need to average row 3 in columns =AVERAGE(D3,K3,R3,Y3,AF3,AM3,AT3,BA3,BH3,BO3,BV3,CC3,CJ3)
 
Upvote 0
For Monday just change the 2 to 4
 
Upvote 0

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

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