excel - How to calculate the average for every 7 colums with a formula? -


i want formula calculate average data in row, every 7 columns. example =average(e25:k25) , formula calculate next 7 =average(l25:r25) , next 7 = average(r25:x25). how can that?

since seem have answered own question i'm guessing automation. i'm guessing copying across more useful copying down.

in column k enter:

=if(mod(column(),7)=4,average(e25:k25),"") 

and drag across right far required.

the average calculated continuous sequence of 7 values starting in column k displayed every seventh column. k happens eleventh column (column being first) dividing column number (obtained =column) required range (ie 7 values) results in 4, derived here =mod.

without fixed references (or anchors, eg $a$1 instead of a1) copying across automatically adjusts results column , range averaged. if condition shows result when modulus of column number when divided 7 4 , blank ("") otherwise.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -