Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 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




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Excel Discussion (Misc queries) 0 June 29th 09 11:20 AM
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Yuvraj Excel Discussion (Misc queries) 0 June 26th 09 06:01 PM
'IF' Macro to insert cell contents to alternate cell if cell not e Gryndar Excel Worksheet Functions 6 December 20th 08 05:02 PM
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 [email protected] Excel Worksheet Functions 1 August 22nd 08 02:04 AM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 06:36 PM


All times are GMT +1. The time now is 09:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"