Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Adding every 5th row (e.g. B5 + B10 + B15 etc)

Hi. Is there an easy way to do this without typing in every single cell
reference.

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 222
Default Adding every 5th row (e.g. B5 + B10 + B15 etc)

I'd do it with a macro. Assign some variables and create a loop incrementing
by 5 each time. Take the value from the desired cell and add it to a
variable. When the range is completed, write the variable back to the
required cell in the s/s.

"Shazzer" wrote:

Hi. Is there an easy way to do this without typing in every single cell
reference.

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Adding every 5th row (e.g. B5 + B10 + B15 etc)

Let's say you have data from B1 thru B1000. In an un-used column, say column
Z enter:

=MAX(INT(ROW()/5)*5-ROW()+1,0) and copy down thru Z1000. Then
=SUMPRODUCT(B1:B1000,Z1:Z1000 will get what you want.)

--
Gary's Student


"Shazzer" wrote:

Hi. Is there an easy way to do this without typing in every single cell
reference.

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Adding every 5th row (e.g. B5 + B10 + B15 etc)

Hi Shazzer,

You could insert a helper column C, then in C5 put =B5,

Then highlight C1 to C5, grab the fill handle and drag down
as far as needed.

Then hide column C, and in whatever cell you wish put =SUM(C:C)

HTH
Martin


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Adding every 5th row (e.g. B5 + B10 + B15 etc)

Try this:

=SUMPRODUCT((MOD(ROW(B1:B100),5)=0)*B1:B100)


--


HTH,

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

"Shazzer" wrote in message
...
Hi. Is there an easy way to do this without typing in every single cell
reference.

Thank you




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Adding every 5th row (e.g. B5 + B10 + B15 etc)

Thank you all very much for your suggestions. I haven't decided which method
to use yet but they all seem reasonably straightforward. Thank you.

"Shazzer" wrote:

Hi. Is there an easy way to do this without typing in every single cell
reference.

Thank you

  #7   Report Post  
Junior Member
 
Posts: 27
Cool

try this link for your basic formula
http://www.andrewsexceltips.com/menu...um_3rd_row.htm

happy holidays hohoho:)
driller2

Quote:
Originally Posted by Shazzer
Thank you all very much for your suggestions. I haven't decided which method
to use yet but they all seem reasonably straightforward. Thank you.

"Shazzer" wrote:

Hi. Is there an easy way to do this without typing in every single cell
reference.

Thank you
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
Adding Only Positive Numbers [email protected] Excel Discussion (Misc queries) 3 November 15th 06 03:51 PM
building YTD figures by adding to a previous months total axialtilt Excel Discussion (Misc queries) 7 July 24th 06 04:07 PM
Date arithmetic: adding 1 month to prior end of month date manxman Excel Worksheet Functions 2 July 14th 06 09:29 PM
Please help with adding automatic data. tnnt Excel Discussion (Misc queries) 1 March 8th 06 09:42 AM
problem adding rvnwdr Excel Discussion (Misc queries) 2 June 8th 05 06:36 PM


All times are GMT +1. The time now is 07:27 PM.

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"