Sum offset formula to add every other column

J

Jana

What formula can I use to sum every other column in the
same row? I know it's a sum(offset) formula, but can't
remember how to do it. EXAMPLE: Want formula in A1 to be
sum of C,E,G,I and sum in B1 to be sum of D,F,H,J - will
continue for many columns that's why I don't want to just
add each cell using +.

A B C D E F G H I J
1 57 62 20 15 17 25 5 10 15 12
 
J

Jana

Not quite what I wanted. I was trying to avoid doing a
formula that summed each cell because eventually the
spreadsheet will go out to column DD and the formula will
result in an error from too many entries. I wanted
somekind of sumoffset formula that would add every other
column in a row. Something like sum(offset(C1:DD1,?,?)),
but I can't remember what to put in to tell it to sum
every other column.
Thanks,
Jana
 
F

Frank Kabel

Hi
try
=SUMPRODUCT(--(MOD(COLUMN(A1:DD1),2)=1),A1:DD1)

to sum A1,C1,E1,..

or
=SUMPRODUCT(--(MOD(COLUMN(A1:DD1),2)=0),A1:DD1)
to sum B1, D1, F1, ...
 
R

RagDyeR

Try this:

In A1 enter:

=SUMPRODUCT((MOD(COLUMN(C1:DD1)+1,2)=0)*(C1:DD1))

And, in B1 enter:

=SUMPRODUCT((MOD(COLUMN(D1:DD1)+2,2)=0)*(D1:DD1))
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



Not quite what I wanted. I was trying to avoid doing a
formula that summed each cell because eventually the
spreadsheet will go out to column DD and the formula will
result in an error from too many entries. I wanted
somekind of sumoffset formula that would add every other
column in a row. Something like sum(offset(C1:DD1,?,?)),
but I can't remember what to put in to tell it to sum
every other column.
Thanks,
Jana
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top