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
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,386
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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)),"")
 

runbird

New Member
Joined
Nov 25, 2011
Messages
24
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
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,386
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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:

Watch MrExcel Video

Forum statistics

Threads
1,122,372
Messages
5,595,787
Members
414,021
Latest member
whyjaydee

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
Top