+ Reply to Thread
Results 1 to 5 of 5

Increment range reference in formula

Hybrid View

  1. #1
    Registered User
    Join Date
    12-07-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    Increment range reference in formula

    Hello All,
    I am new here and couldn't find what I am looking for and could be that I am not sure what it is called.

    In col A, I have data (hundreds of numbers).
    In col B, my formula. i.e =SUM(A7:A13) so sum of 7 cells.

    Basically I am summing the data in col A in a group of 7 cells and repeat until the end of the list in col A.

    How do I make the formula automatically increments the range references? I dragged the formula cell down to next rows but it doesn't increment corrently.

    It should be like this.
    =SUM(A7:A13)
    =SUM(A14:A20)
    =SUM(A21:A27)
    =SUM(A28:A34)
    and so on....

    Thanks in advance for your help.
    Paul

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Increment range reference in formula

    Welcome to the forum.

    In B1 and copy down, =SUM(INDEX(A:A, 7 * ROW() - 6): INDEX(A:A, 7 * ROW() ) )
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-07-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    Thumbs up Re: Increment range reference in formula

    Quote Originally Posted by shg View Post
    Welcome to the forum.

    In B1 and copy down, =SUM(INDEX(A:A, 7 * ROW() - 6): INDEX(A:A, 7 * ROW() ) )
    Thanks much shg for the quick response and it works fine.

    How can I copy down to have the result next to the end of each group of data? The data is a group of 7 cells down so would be at: B14, B21, B28, and on.

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Increment range reference in formula

    If B7 has the formula, =SUM(A7:A13), then:

    Select B7:B13. Hover over the lower right corner of B13, then click and drag downward to the bottom of your data. Your sums should line up.

  5. #5
    Registered User
    Join Date
    12-07-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Increment range reference in formula

    Quote Originally Posted by Paul View Post
    If B7 has the formula, =SUM(A7:A13), then:

    Select B7:B13. Hover over the lower right corner of B13, then click and drag downward to the bottom of your data. Your sums should line up.
    Thank you Paul. That looks simple but effectve.

+ 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