Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Teri
 
Posts: n/a
Default Add alternate rows

I can't seem to find how to do this. Want to add every other row in a
worksheet. Any ideas? Thanks!
  #2   Report Post  
Alan Beban
 
Posts: n/a
Default

Teri wrote:
I can't seem to find how to do this. Want to add every other row in a
worksheet. Any ideas? Thanks!

Do you mean 1,3,5,etc. or 2,4,6,etc.?

Alan Beban
  #3   Report Post  
Teri
 
Posts: n/a
Default

You got it! Thanks for responding :)

"Alan Beban" wrote:

Teri wrote:
I can't seem to find how to do this. Want to add every other row in a
worksheet. Any ideas? Thanks!

Do you mean 1,3,5,etc. or 2,4,6,etc.?

Alan Beban

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

=SUMPRODUCT(--(MOD(ROW(A1:A20),2)=0),A1:A20)

will add every even row in column A

=SUMPRODUCT(--(MOD(ROW(A1:A20),2)=1),A1:A20)

adds every odd row

--

HTH

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


"Teri" wrote in message
...
I can't seem to find how to do this. Want to add every other row in a
worksheet. Any ideas? Thanks!



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

Let A2:A400 be the range of interest...

=SUMPRODUCT(--(MOD(ROW(A2:A400)-CELL("Row",A2)+0,H2)=0),A2:A400)

Teri wrote:
I can't seem to find how to do this. Want to add every other row in a
worksheet. Any ideas? Thanks!



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

Replace H2 with 2.

Aladin Akyurek wrote:
Let A2:A400 be the range of interest...

=SUMPRODUCT(--(MOD(ROW(A2:A400)-CELL("Row",A2)+0,H2)=0),A2:A400)

Teri wrote:

I can't seem to find how to do this. Want to add every other row in a
worksheet. Any ideas? Thanks!

  #7   Report Post  
Teri
 
Posts: n/a
Default

AWESOME! That was so easy! Thank you!

"Bob Phillips" wrote:

=SUMPRODUCT(--(MOD(ROW(A1:A20),2)=0),A1:A20)

will add every even row in column A

=SUMPRODUCT(--(MOD(ROW(A1:A20),2)=1),A1:A20)

adds every odd row

--

HTH

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


"Teri" wrote in message
...
I can't seem to find how to do this. Want to add every other row in a
worksheet. Any ideas? Thanks!




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
Select alternate rows to copy Christina Excel Discussion (Misc queries) 4 January 27th 05 02:05 AM
How do I shade alternate rows in Excel 2002? drummergirl73 Excel Discussion (Misc queries) 2 November 29th 04 10:17 PM
How to sum-up alternate rows ? lolex Excel Worksheet Functions 3 November 5th 04 12:57 PM
Use of Exact(or other) function for alternate rows? yusee_ygs Excel Worksheet Functions 2 November 3rd 04 09:44 PM
Identifying exact values in alternate rows YG Excel Worksheet Functions 1 November 3rd 04 12:25 AM


All times are GMT +1. The time now is 07:10 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"