![]() |
sum up every other cell
Hi there, the formula i am using is
=SUMPRODUCT((MOD(ROW(G$12:G$2263),2)=0)*(G$12:G$22 63)) 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 |
sum up every other cell
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. -- Biff Microsoft Excel MVP "veena" wrote in message ... Hi there, the formula i am using is =SUMPRODUCT((MOD(ROW(G$12:G$2263),2)=0)*(G$12:G$22 63)) 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 |
sum up every other cell
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) "veena" wrote: Hi there, the formula i am using is =SUMPRODUCT((MOD(ROW(G$12:G$2263),2)=0)*(G$12:G$22 63)) 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 |
All times are GMT +1. The time now is 10:58 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com