OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Average every Nth row

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
KaylonNC
Newbie
Newbie


Joined: 31 May 2012
Posts: 3

PostPosted: Thu May 31, 2012 5:33 am    Post subject: Average every Nth row Reply with quote

I need to get the AVERAGE, MODE, & MAX for every 21st row, excluding zeros, beginning with D31 ending with D670. Every formula I try gives me Error 508. Please help. [/img]
_________________
Dear Apple,
Thanks for shutting us oOo's out...
Back to top
View user's profile Send private message
ken johnson
Super User
Super User


Joined: 23 Apr 2009
Posts: 1851
Location: Sydney, Australia

PostPosted: Thu May 31, 2012 6:02 am    Post subject: Reply with quote

Try these array formulae...
Code:
AVERAGE(IF((MOD(ROW($D$31:$D$670)-31;21)=0)*($D$31:$D$670<>0);$D$31:$D$670;""))

Code:
MODE(IF((MOD(ROW($D$31:$D$670)-31;21)=0)*($D$31:$D$670<>0);$D$31:$D$670;""))

Code:
MAX(IF((MOD(ROW($D$31:$D$670)-31;21)=0)*($D$31:$D$670<>0);$D$31:$D$670;""))

Array formula must be entered using Ctrl+Shift+Enter PC key combination and the Ctrl key must be held down while dragging the fill handle when copying into adjacent cells.

Ken Johnson
_________________
If your problem has been solved please add "[Solved]" to the beginning of your first post title (edit button).
Back to top
View user's profile Send private message
KaylonNC
Newbie
Newbie


Joined: 31 May 2012
Posts: 3

PostPosted: Thu May 31, 2012 12:27 pm    Post subject: Maybe it's me... Reply with quote

I'm getting Err: 501 after carefully entering in the formulas 4 times
_________________
Dear Apple,
Thanks for shutting us oOo's out...
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10065
Location: Germany

PostPosted: Thu May 31, 2012 1:39 pm    Post subject: Reply with quote

Is is so that today's computer users can not copy and paste anymore?
Ken's formulas work for me.

Hit F1 to find out what error 501 means:
F1 Help on error codes wrote:
501 Invalid character Character in a formula is not valid.

Obviously you did not type carefully enough.
_________________
Rest in peace, oooforum.org
Get help on http://forum.openoffice.org
Back to top
View user's profile Send private message
KaylonNC
Newbie
Newbie


Joined: 31 May 2012
Posts: 3

PostPosted: Thu May 31, 2012 2:13 pm    Post subject: Reply with quote

I am well aware of what the error codes mean and how to copy and paste. The formulas WERE entered exactly as the post stated because I'm not an idiot. The computer I am using to write the spreadsheets on does not allow outside internet access so I cannot copy and paste the formulas. If you have nothing to add that is helpful, then please mind your own business. If you do have something to add that will help me find the error in the formula then it would be greatly appreciated. - Thanks
_________________
Dear Apple,
Thanks for shutting us oOo's out...
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10065
Location: Germany

PostPosted: Thu May 31, 2012 3:12 pm    Post subject: Reply with quote

http://www.mediafire.com/?55po8ca986xx15i
_________________
Rest in peace, oooforum.org
Get help on http://forum.openoffice.org
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group