Assume that column A has a list of values in it. In column B I want a list of n averages, for instance b1=average(a1:a5), b2=average(a6:a10), etc.
Is there a simple formula that can be replicated down column B that would be generic for any value of n? I thought that OFFSET might be a
possibility but can’t think of a way to implement it.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Averaging by N (97,2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Averaging by N (97,2000)
- This topic has 5 replies, 4 voices, and was last updated 21 years, 10 months ago.
AuthorTopicWSthomascox
AskWoody LoungerJune 23, 2003 at 2:43 pm #389453Viewing 2 reply threadsAuthorReplies-
WSsdckapr
AskWoody LoungerJune 23, 2003 at 3:00 pm #687835 -
WSHansV
AskWoody LoungerJune 23, 2003 at 3:51 pm #687838Ignore this post – it doesn’t answer the question – sorry.
The formula you provide will fill down correctly for any value of n. But perhaps you want to specify n in a separate cell, so that you can vary it easily. Say that you put the value of n in cell D1. Put the following formula into B1:
=AVERAGE(INDIRECT(“A”&ROW()&”:A”&(ROW()+$D$1-1)))
This formula can be filled down. You can change the number of cells over which the average is calculated by changing the value in D1.
-
WSsdckapr
AskWoody LoungerJune 23, 2003 at 3:25 pm #687843This
=AVERAGE(INDIRECT(“A”&ROW()&”:A”&(ROW()+$D$1-1)))will give A1:A5, A2:A6, A3:A7, … etc
He wanted A1:A5, A6:A10, A11:A15, … etc
=AVERAGE(INDIRECT(“A”&(+ROW()-1)*$D$1+1&”:A”&(+ROW()*$D$1)))
If you want a cell listed, though if you defined the cell D1 as “NumValues” you have what I listed:
=AVERAGE(INDIRECT(“A”&(+ROW()-1)*NumValues+1&”:A”&(+ROW()*NumValues)))
Steve
-
WSHansV
AskWoody Lounger
-
-
-
WSAladin Akyurek
AskWoody LoungerJune 23, 2003 at 9:07 pm #687919Using non-volatile INDEX…
=IF(COUNT($A$1:A1)*NumVals1,NumVals*(COUNT($A$1:A1)-1)+1,1),1):INDEX($A$1:$A$25,COUNT($A$1:A1)*NumVals,1)),””)
Using volatile OFFSET…
=IF(COUNT($A$1:A1)*NumVals1,NumVals*(COUNT($A$1:A1)-1),0),0,NumVals,1)),””)
NumVals stands for blocks of “N values” that you want to average.
Both formulas should behave correctly against inserting rows before the data.
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Can’t make Opera my default browser
by
bmeacham
3 hours, 23 minutes ago -
Do not Fall For This Purdentix Scam (Awaiting moderation)
by
elizabethkaur56
5 hours, 57 minutes ago -
*Some settings are managed by your organization
by
rlowe44
15 hours, 55 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
18 hours, 9 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
18 hours, 34 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 3 hours ago -
AI slop
by
Susan Bradley
1 day, 2 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 4 hours ago -
Two blank icons
by
CR2
14 hours, 25 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 13 hours ago -
End of 10
by
Alex5723
1 day, 16 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
14 hours, 20 minutes ago -
test post
by
gtd12345
1 day, 22 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 12 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 4 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 2 hours ago -
Upgrading from Win 10
by
WSjcgc50
14 hours, 30 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
18 hours, 3 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 18 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 6 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 20 hours ago -
Are manuals extinct?
by
Susan Bradley
6 hours, 2 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 5 hours ago -
Network Issue
by
Casey H
2 days, 16 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 17 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 17 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 19 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 20 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 22 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 22 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.