Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
malik641
 
Posts: n/a
Default SUM every other 14th cell


Is there a worksheet function that sums a given range, but every other
14th cell?
Example:
A1=4
A15=2
A29=4

Answer would obviously be: 10

I want the function to only add every other 14th cell. I assume it
would be something like this:

=SUM(range,step) or something like that


I have a LOT of values to add (example:A1:A1500) and it would be a
LOOOOONG line of code to add to type them all in manually. And if i
wanted to add maybe 20 more of these cells (280 total cells) it would
be MUCH easier to change the range in the function instead of manually
entering in each specific cell.
*There is no specific criteria either, just numbers.

So any ideas would be great. Thanks!


--
malik641
------------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=387585

  #2   Report Post  
Domenic
 
Posts: n/a
Default


Try...

=SUMPRODUCT(--(MOD(ROW(A1:A1500)-ROW(A1),14)=0),A1:A1500)

Hope this helps!

malik641 Wrote:
Is there a worksheet function that sums a given range, but every other
14th cell?
Example:
A1=4
A15=2
A29=4

Answer would obviously be: 10

I want the function to only add every other 14th cell. I assume it
would be something like this:

=SUM(range,step) or something like that


I have a LOT of values to add (example:A1:A1500) and it would be a
LOOOOONG line of code to add to type them all in manually. And if i
wanted to add maybe 20 more of these cells (280 total cells) it would
be MUCH easier to change the range in the function instead of manually
entering in each specific cell.
*There is no specific criteria either, just numbers.

So any ideas would be great. Thanks!



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=387585

  #3   Report Post  
Paul B
 
Posts: n/a
Default

Malik641, try something like this,

=SUMPRODUCT((MOD(ROW(A1:A1500)-CELL("Row",A1:A1500)+0,14)=0)*(A1:A1500))
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"malik641" wrote in
message ...

Is there a worksheet function that sums a given range, but every other
14th cell?
Example:
A1=4
A15=2
A29=4

Answer would obviously be: 10

I want the function to only add every other 14th cell. I assume it
would be something like this:

=SUM(range,step) or something like that


I have a LOT of values to add (example:A1:A1500) and it would be a
LOOOOONG line of code to add to type them all in manually. And if i
wanted to add maybe 20 more of these cells (280 total cells) it would
be MUCH easier to change the range in the function instead of manually
entering in each specific cell.
*There is no specific criteria either, just numbers.

So any ideas would be great. Thanks!


--
malik641
------------------------------------------------------------------------
malik641's Profile:
http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=387585



  #4   Report Post  
Duke Carey
 
Posts: n/a
Default

=SUMPRODUCT(A1:A500,--(MOD(ROW(A1:A500),14)=1))

"malik641" wrote:


Is there a worksheet function that sums a given range, but every other
14th cell?
Example:
A1=4
A15=2
A29=4

Answer would obviously be: 10

I want the function to only add every other 14th cell. I assume it
would be something like this:

=SUM(range,step) or something like that


I have a LOT of values to add (example:A1:A1500) and it would be a
LOOOOONG line of code to add to type them all in manually. And if i
wanted to add maybe 20 more of these cells (280 total cells) it would
be MUCH easier to change the range in the function instead of manually
entering in each specific cell.
*There is no specific criteria either, just numbers.

So any ideas would be great. Thanks!


--
malik641
------------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=387585


  #5   Report Post  
malik641
 
Posts: n/a
Default


Thanks everyone!!! They all work great

I have another question (REALLY simple)...I never understood why there
are the double dashes (or two minus signs, whatever you want to call
it) before certain functions (in this case, before the MOD function).
Why is that????


--
malik641
------------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=387585



  #6   Report Post  
RagDyer
 
Posts: n/a
Default

Check out this links of John McGimpsey:

http://www.mcgimpsey.com/excel/formulae/doubleneg.html

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"malik641" wrote in
message ...

Thanks everyone!!! They all work great

I have another question (REALLY simple)...I never understood why there
are the double dashes (or two minus signs, whatever you want to call
it) before certain functions (in this case, before the MOD function).
Why is that????


--
malik641
------------------------------------------------------------------------
malik641's Profile:

http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=387585


  #7   Report Post  
malik641
 
Posts: n/a
Default


Good stuff. Thanks RD!


--
malik641
------------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=387585

  #8   Report Post  
RagDyeR
 
Posts: n/a
Default

I'm sure John appreciates your appreciation!<g
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"malik641" wrote in
message ...

Good stuff. Thanks RD!


--
malik641
------------------------------------------------------------------------
malik641's Profile:
http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=387585


  #9   Report Post  
Ashish Mathur
 
Posts: n/a
Default

Hi,

Please find herein another solution. Assuming your range of data is in
A1:A30 (1 to 30). In cell A32, enter the following array formula
(Ctrl+Shift+Enter).

=SUM(IF(MOD(ROW(A1:A30),14)=0,A1:A30))

Hope this helps.

Regards,

Ashish Mathur

"malik641" wrote:


Is there a worksheet function that sums a given range, but every other
14th cell?
Example:
A1=4
A15=2
A29=4

Answer would obviously be: 10

I want the function to only add every other 14th cell. I assume it
would be something like this:

=SUM(range,step) or something like that


I have a LOT of values to add (example:A1:A1500) and it would be a
LOOOOONG line of code to add to type them all in manually. And if i
wanted to add maybe 20 more of these cells (280 total cells) it would
be MUCH easier to change the range in the function instead of manually
entering in each specific cell.
*There is no specific criteria either, just numbers.

So any ideas would be great. Thanks!


--
malik641
------------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=387585


  #10   Report Post  
malik641
 
Posts: n/a
Default


Has anyone noticed that this thread has been repeating itself????


--
malik641


------------------------------------------------------------------------
malik641's Profile: http://www.excelforum.com/member.php...o&userid=24190
View this thread: http://www.excelforum.com/showthread...hreadid=387585

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
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Cell Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
Pasting Word table cell with paragraph markers into single Excel c Steve Excel Discussion (Misc queries) 1 June 16th 05 11:26 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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