Share via

too many arguments for the sum function

Anonymous
2011-09-28T14:33:45+00:00

Hi all - I have 200 rows of which I need to SUM every other row in each column. The sum function will not let me sum 100 rows when I click on each cell that needs to be included. I get an error that I have too many arguments. Any help would be greatly appreciated.

Thank you!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2011-09-28T15:00:16+00:00

You can use a formula like this to sum every other row:

Odd rows:

=SUMPRODUCT((A1:A100)*(MOD(ROW(A1:A100),2)<>0))

Even rows:

=SUMPRODUCT((A1:A100)*(MOD(ROW(A1:A100),2)=0))

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2011-09-28T14:58:00+00:00

Try something like

=SUMPRODUCT(A1:A200*(MOD(ROW(A1:A200),2)=0))

if you want to sum the even-numbered rows, or

=SUMPRODUCT(A1:A200*(MOD(ROW(A1:A200),2)=1))

if you want to sum the odd-numbered rows.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more