| View previous topic :: View next topic |
| 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... |
|
| Back to top |
|
 |
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). |
|
| Back to top |
|
 |
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... |
|
| Back to top |
|
 |
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 |
|
| Back to top |
|
 |
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... |
|
| Back to top |
|
 |
Villeroy Super User


Joined: 04 Oct 2004 Posts: 10065 Location: Germany
|
|
| Back to top |
|
 |
|