[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
KaylonNC
Newbie

Joined: 31 May 2012
Posts: 3

 Posted: Thu May 31, 2012 5:33 am    Post subject: Average every Nth row 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...
ken johnson
Super User

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

Posted: Thu May 31, 2012 6:02 am    Post subject:

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).
KaylonNC
Newbie

Joined: 31 May 2012
Posts: 3

 Posted: Thu May 31, 2012 12:27 pm    Post subject: Maybe it's me... I'm getting Err: 501 after carefully entering in the formulas 4 times_________________Dear Apple, Thanks for shutting us oOo's out...
Villeroy
Super User

Joined: 04 Oct 2004
Posts: 10065
Location: Germany

Posted: Thu May 31, 2012 1:39 pm    Post subject:

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
KaylonNC
Newbie

Joined: 31 May 2012
Posts: 3

 Posted: Thu May 31, 2012 2:13 pm    Post subject: 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...
Villeroy
Super User

Joined: 04 Oct 2004
Posts: 10065
Location: Germany

 Posted: Thu May 31, 2012 3:12 pm    Post subject: http://www.mediafire.com/?55po8ca986xx15i_________________Rest in peace, oooforum.org Get help on http://forum.openoffice.org
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
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