how to find the average from a group of data

runbird

New Member
Joined
Nov 25, 2011
Messages
24
hi all,

i have a set of 900 data and i wish to find the average from every 30 data, is there a way to do it?

e.g average 1 is from data 1-30,

average 2 is from data 31 to 60....

average 30 is from data 871 to 900....


thank you
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
If you data are in col A starting in cell A1, enter this formula in B1 and drag down to your last data point.

Code:
=IF(MOD(ROW(),30)=0,AVERAGE(OFFSET(A1,-29,0,30)),"")
 
Upvote 0
If you data are in col A starting in cell A1, enter this formula in B1 and drag down to your last data point.

Code:
=IF(MOD(ROW(),30)=0,AVERAGE(OFFSET(A1,-29,0,30)),"")

hi joe,

thanks for the code. i am able to get the average of the data, but the average is space 30 rows apart. is it possible to group the average together so that it will be more easier to copy them?

thanks
 
Upvote 0
Filter column B for non-blank cells to group them. In the filter criteria dialog box choose text filter>does not equal and leave the criteria empty.

EDIT: If you prefer here's another way to group the averages:
Excel Workbook
CD
1RowAvg_30
2301
3601
4901.3
Sheet1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,449
Members
448,966
Latest member
DannyC96

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