+ Reply to Thread
Results 1 to 3 of 3

Formula with Range set at regular intervals

  1. #1
    Registered User
    Join Date
    03-23-2010
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    1

    Formula with Range set at regular intervals

    Hi all, first post.
    If this has already been asked, please send me a link but I have searched and found nothing.

    I want to create a formula so that when I drag it down to apply to multiple cells the range in the formula increases at say an interval of 5 rather than 1. So it continues from where the previous cell finished.

    For example, if in cell A1 I had:
    =SUM(B1:B5)

    I'd want cell A2 to have:
    =SUM(B6:B10)

    Rather than:
    =SUM(B2:B6)

    I hope that illustrates what I'm after as I can't think of a better way to word it!

    Thanks in adance for any help!

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Formula with Range set at regular intervals

    This may be possible without the use of helper cells, but here is one way to go about it.

    Assuming values are in column-A, column-B will hold the sum formula and column-C & D are helpers:

    B1: =SUM(INDIRECT("A"&C1&":"&"A"&D1))
    C1: =ROW()
    D1: =ROW()+4

    Then in C2 and D2 copied down
    C2: =C1+5
    D2: =D1+5
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Formula with Range set at regular intervals

    =Sum(Index(B:B,(Row()-1)*5+1):Index(B:B,Row()*5))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1