More than 30 arguements in a cell

ragan

Board Regular
Joined
Dec 3, 2008
Messages
52
I have a spreadsheet set up that cannot be altered and I am trying to sum every other cell in a column with 80 rows. There is a max of 30 arguments allowed - i.e., =sum(a1,a3,a5,...). How do I solve this?
 
You can use:
=SUMPRODUCT(--(MOD(ROW(A1:A80),2)=1),A1:A80)
to sum the odd row numbers.
 
Upvote 0
The simplest solution would be to not use Sum...

Try

=A1+A3+A5+A7.....

Standby for a more clever solution without having to type each cell reference.

Is it literally every other cell, beginning with A1? Or is that a simplified version of actual goal?
 
Upvote 0
Rorya,

Okay, here is my function - =SUMPRODUCT(--(MOD(ROW(H58:H123),2)=1),H58:H123)

To test the formula, I have only two values in the columns, I will fill the rest once I fix this issue:

In line 62 I have a total of 7
In line 63 I have a total of 44.5

The function you gave me returns 44.5. I have tried everything, but i cannot change it to return 7, can you help me?
 
Upvote 0
=SUMPRODUCT(--(MOD(ROW(H58:H123),2)=1),H58:H123)

The bold red 1 makes it sum ODD rows
Change that to a 0 to make it sum the EVEN rows
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top