# Average Cells In a Column

#### KBurns

##### New Member
Sounds simple but I'm a new user and can't quite figure it out:
I have a column with over 100 numbers listed. I want to average cells A2, A7, A12, A17, A22, A27, etc. for the entire workbook in that one column.
Please use simple words so I get it!

### Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

#### fascsam

##### New Member
It's easy if you don't mind using another column... a formula can be easily copied down to pull only every 5th number, then you use the average function to get the average. Shoot me an email if that doesn't makes sense..

scott@thefuturesbroker.com

##### MrExcel MVP
On 2002-10-14 15:15, KBurns wrote:
Sounds simple but I'm a new user and can't quite figure it out:
I have a column with over 100 numbers listed. I want to average cells A2, A7, A12, A17, A22, A27, etc. for the entire workbook in that one column.
Please use simple words so I get it!

(1.) Select the vertical range of interest in A.
(2.) Go to the Name Box on the Formula Bar.
(3.) Type Srange (or something more intelligible to you) and hit enter.
(4.) Use the following formula to sum every 5th number in Srange starting from its first value...

=SUMPRODUCT((MOD(ROW(Srange)-CELL("Row",Srange)+0,5)=0)*(Srange))

And for the average...

=SUMPRODUCT((MOD(ROW(Srange)-CELL("Row",Srange)+0,5)=0)*(Srange))/MAX(1,SUMPRODUCT((MOD(ROW(Srange)-CELL("Row",Srange)+0,5)=0)+0))
This message was edited by Aladin Akyurek on 2002-10-14 15:42

#### Mark W.

##### MrExcel MVP
{=AVERAGE(A2,IF(MOD(ROW(A7:A27)-2,5),"",A7:A27))}

Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. For more on array formulas see the Excel Help topic for "About array formulas and how to enter them".

Replies
1
Views
282
Replies
2
Views
160
Replies
15
Views
301
Replies
8
Views
317
Replies
3
Views
183

1,181,917
Messages
5,932,777
Members
436,861
Latest member
eh19

### 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.

### Which adblocker are you using?

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

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