Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RJH
 
Posts: n/a
Default Summing every other cell in a column?

Is there a way to do this with out using VBA?

Thanks!

RJH


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RJH
 
Posts: n/a
Default Summing every other cell in a column?

A little more detail:
I'm summing about a hundred cells (every 2nd cell). Sum is limited to 30 (I
think), so I have to string together several Sums.
Is there a "cleaner" way to do this?

Thanks!

RJH

"RJH" wrote in message
...
Is there a way to do this with out using VBA?

Thanks!

RJH



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Summing every other cell in a column?

Try something like this:

For values in A1:A50

This formula adds the values in rows with odd numbers (1,3,5, etc)
B1: =SUMPRODUCT((MOD(ROW(A1:A50),2)=1)*A1:A50)

This formula adds the values in rows with even numbers (2,4,6, etc)
B1: =SUMPRODUCT((MOD(ROW(A1:A50),2)=0)*A1:A50)

Does that give you something to work with?

***********
Regards,
Ron

XL2002, WinXP-Pro


"RJH" wrote:

A little more detail:
I'm summing about a hundred cells (every 2nd cell). Sum is limited to 30 (I
think), so I have to string together several Sums.
Is there a "cleaner" way to do this?

Thanks!

RJH

"RJH" wrote in message
...
Is there a way to do this with out using VBA?

Thanks!

RJH




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Summing every other cell in a column?

Hi!

Assume your values are in the range A1:A10.

This will sum the values in A1, A3, A5, A7, A9:

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

This will sum the values in A2, A4, A6, A8, A10:

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

Biff

"RJH" wrote in message
...
Is there a way to do this with out using VBA?

Thanks!

RJH



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RJH
 
Posts: n/a
Default Summing every other cell in a column?

You hit it on the head!
That will work just fine.

Thanks!

RJH


"Ron Coderre" wrote in message
...
Try something like this:

For values in A1:A50

This formula adds the values in rows with odd numbers (1,3,5, etc)
B1: =SUMPRODUCT((MOD(ROW(A1:A50),2)=1)*A1:A50)

This formula adds the values in rows with even numbers (2,4,6, etc)
B1: =SUMPRODUCT((MOD(ROW(A1:A50),2)=0)*A1:A50)

Does that give you something to work with?

***********
Regards,
Ron

XL2002, WinXP-Pro


"RJH" wrote:

A little more detail:
I'm summing about a hundred cells (every 2nd cell). Sum is limited to 30
(I
think), so I have to string together several Sums.
Is there a "cleaner" way to do this?

Thanks!

RJH

"RJH" wrote in message
...
Is there a way to do this with out using VBA?

Thanks!

RJH






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
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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