sum up every other cell

V

veena

Hi there, the formula i am using is
=SUMPRODUCT((MOD(ROW(G$12:G$2263),2)=0)*(G$12:G$2263)) I need This year total
in G7 and below it i need Last year total in G8 basically i want the formula
to sum up every other cell so like all this year's and all last year and the
layout is this year and under is last year so i am using this formula and it
works but it doesnt work if there are too many rows between the range and the
total. it keeps on giving me #value error
thanks
Veena
 
T

T. Valko

it doesnt work if there are too many rows between
the range and the total. it keeps on giving me
#value error

The number of rows has nothing to do with it. You'll get a #VALUE! error is
any of the even numbered cells have TEXT in them or, if *any* cells already
contain a #VALUE! error.

Try it like this:

=SUMPRODUCT(--(MOD(ROW(G$12:G$2263),2)=0),G$12:G$2263)

That will still return an error if *any* cells already contain a #VALUE!
error.
 
J

Joel

You can always use amn auxilary column.

Put in an unued column the formula

=mod(row(),2)

The use Sumif and the use for the condition the new column = 1

=sumif(IV$12:IV$2263,0,G$12:G$2263)
 

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