Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Brent
 
Posts: n/a
Default Need formula or Function to sum value of every other cell in a col

Hello,

I have a need to sum the values in every other cell, and sometimes every
third cell, in a column or row.

Thanks
--
Brent
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Need formula or Function to sum value of every other cell in a col

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

gets A1,A3, etc.

To get A2,A4, etc. then change =1 to =0.

For every third, do a MOD(...,3)

etc.

--

HTH

RP

"Brent" wrote in message
...
Hello,

I have a need to sum the values in every other cell, and sometimes every
third cell, in a column or row.

Thanks
--
Brent



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Billigmeier
 
Posts: n/a
Default Need formula or Function to sum value of every other cell in a col

Gonna have to modify this a little, depending on how your data is set up.
This formula assumes your data range is A1:A20, and the number of rows in
between that you want to skip in the sum is located in B1.

=SUMPRODUCT((MOD(ROW(A1:A20),B1)=0)*(A1:A20))

So, if you had 2 located in B1, this formula will give you a sum of
A2+A4+A6+...+A20.

If you have a 3 located in B1, this formula will give you a sum of
A3+A6+A9+...+A18.

--
Regards,
Dave


"Brent" wrote:

Hello,

I have a need to sum the values in every other cell, and sometimes every
third cell, in a column or row.

Thanks
--
Brent

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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
IF Function to test formula in a cell Fred Holmes Excel Worksheet Functions 5 November 18th 05 12:04 AM
revealing the contents of a formula srinivasan Excel Worksheet Functions 10 July 5th 05 04:39 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


All times are GMT +1. The time now is 01:13 AM.

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

About Us

"It's about Microsoft Excel"