Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KRM
 
Posts: n/a
Default Excell 2000 worksheet

how may I devise a formula for adding only alternate cells in columns?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Even rows: =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=0),B1:B30)
Odd rows; =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=1),B1:B30)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"KRM" wrote in message
...
how may I devise a formula for adding only alternate cells in columns?



  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

"Bob Phillips" wrote...
Even rows: =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=0),B1:B30)
Odd rows; =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=1),B1:B30)


Yes, but if you had the sum of even rows in, say, X99, then it'd be more
efficient to calculate the sum of odd rows using

=SUM(B1:B30)-X99


  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

True, but he asked for summing alternate rows without saying whether he
wanted odd or even, so I gave him both. He did not say he wanted two sums,.

Bob

"Harlan Grove" wrote in message
...
"Bob Phillips" wrote...
Even rows: =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=0),B1:B30)
Odd rows; =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=1),B1:B30)


Yes, but if you had the sum of even rows in, say, X99, then it'd be more
efficient to calculate the sum of odd rows using

=SUM(B1:B30)-X99




  #5   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

KRM wrote:
how may I devise a formula for adding only alternate cells in columns?


=SUMPRODUCT(--(MOD(ROW(A3:A8)-ROW($A$3)+0,2)=0),A3:A8)

Replace the +0 bit with +1 if summing must start with the first 2nd value.

Note that 2 (the Nth row parameter) can be any admissible value, odd or
even.


  #6   Report Post  
KRM
 
Posts: n/a
Default

I'm grateful to you for this help. I'd never have got it by myself. Thanks,
KRM

"Harlan Grove" wrote:

"Bob Phillips" wrote...
Even rows: =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=0),B1:B30)
Odd rows; =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=1),B1:B30)


Yes, but if you had the sum of even rows in, say, X99, then it'd be more
efficient to calculate the sum of odd rows using

=SUM(B1:B30)-X99



  #7   Report Post  
KRM
 
Posts: n/a
Default

I'm grateful to you for this help. I'd never have got it by myself. Thanks,
KRM

"Bob Phillips" wrote:

Even rows: =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=0),B1:B30)
Odd rows; =SUMPRODUCT(--(MOD(ROW(B1:B30),2)=1),B1:B30)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"KRM" wrote in message
...
how may I devise a formula for adding only alternate cells in columns?




  #8   Report Post  
KRM
 
Posts: n/a
Default

I'll bet that's a great solution but it's like a PHD coaching a
kindergardener. Many thanks anyway. KRM

"Aladin Akyurek" wrote:

KRM wrote:
how may I devise a formula for adding only alternate cells in columns?


=SUMPRODUCT(--(MOD(ROW(A3:A8)-ROW($A$3)+0,2)=0),A3:A8)

Replace the +0 bit with +1 if summing must start with the first 2nd value.

Note that 2 (the Nth row parameter) can be any admissible value, odd or
even.

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
Excel 2000...Click on different Worksheet...Get a New icon and can Brian Excel Discussion (Misc queries) 0 April 8th 05 03:05 PM
In Excel 2000, How do you select the whole of a worksheet (Select. Rascal Excel Discussion (Misc queries) 1 March 5th 05 12:03 AM
In Excel 2000, How do you select the whole of a worksheet (Select. Rascal Excel Discussion (Misc queries) 1 March 4th 05 11:59 PM
Worksheet shrinks in size in Excel 2000 keith253 Excel Discussion (Misc queries) 2 January 13th 05 06:02 PM
Is there a way to make Excel 2000 open a new worksheet in a new w. gdub Excel Discussion (Misc queries) 1 December 22nd 04 03:56 PM


All times are GMT +1. The time now is 04:07 AM.

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"