Average Cells In a Column

KBurns

New Member
Joined
Oct 13, 2002
Messages
1
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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

fascsam

New Member
Joined
Jul 22, 2002
Messages
30
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
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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
Joined
Feb 10, 2002
Messages
11,654
{=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".
 

Forum statistics

Threads
1,144,433
Messages
5,724,317
Members
422,543
Latest member
TimB_13

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