+ Reply to Thread
Results 1 to 8 of 8

Sum Across a Range Based on a Referential Starting Point

  1. #1
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Sum Across a Range Based on a Referential Starting Point

    I have a table with the following structure:
    a) week numbers (1-12) across the top, on row 1
    b) store numbers in Col A
    c) a Starting week number in Col B (also weeks 1-12)
    d) sales data in F2:Q21

    I am trying to find a way to sum sales data for each store based on starting week (values in Col B)

    For example
    Store 200 (in cell A2) starts in Week 5 (as noted in cell B2), so I would like to sum all of the sales values on that same row starting from week 5 through week 12
    Again, the week numbers are also specified in Row 1, the header row of the table

    Another example
    Store 250 (in cell A3) starts in Week 2 (as noted in Cell B3), so I would like to sum all of the sales values on that same row from weeks 2-12, again with respect to the header row that also contains the week numbers

    Each store number will start on a different week, and it's too much of a hassle trying to manually change the sum range each time.
    Not sure if there is a way to use a dynamic matching reference (index match sum....) something that matches my start week with the header row, and then sums the range accordingly per store.

    Attached is a sample file that demos what I am trying to accomplish, and hopefully sheds better light than my explanation above.

    Thanks in advance for any help!
    Attached Files Attached Files

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Sum Across a Range Based on a Referential Starting Point

    In cell D2, try:

    Please Login or Register  to view this content.
    Copy/Autofill down.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum Across a Range Based on a Referential Starting Point

    Here is another way. Enter this formula in D2 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: Sum Across a Range Based on a Referential Starting Point

    Awesome solutions guys.
    These both work perfectly!

    Thanks so much for your help.

  5. #5
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: Sum Across a Range Based on a Referential Starting Point

    I have a follow-up question.

    What if I always want to add up to 12 columns worth of values, again with respect to the starting point.

    Attached is a modified workbook that has a few extra columns in it to illustrate.

    So basically, if we start at Week 5 (as the reference point), then sum all of the values for the 12 columns starting with the Week 5 reference (i.e., sum values in Cols with Weeks 5-16).
    Similarly, if Store 2 starts in Week 4, then sum all of the values in the 12 Cols starting with Week 4 reference value.


    Thanks again.
    Attached Files Attached Files
    Last edited by hamidxa; 02-10-2015 at 07:38 PM.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum Across a Range Based on a Referential Starting Point

    This formula takes the Start Week as the OFFSET from column E and sums the 12 values to the right starting with the offset value. Enter this formula in D2 and fill down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: Sum Across a Range Based on a Referential Starting Point

    Quote Originally Posted by newdoverman View Post
    This formula takes the Start Week as the OFFSET from column E and sums the 12 values to the right starting with the offset value. Enter this formula in D2 and fill down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Woah.
    Very slick solution.

    Thanks!

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum Across a Range Based on a Referential Starting Point

    I'm glad it works for you. Thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sum if - More than one column, mivng range, fix starting point
    By Skoum in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2012, 10:14 AM
  2. Need help with a marcro based on a starting point.
    By charlottebath in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2012, 04:17 PM
  3. Replies: 2
    Last Post: 06-27-2011, 10:47 PM
  4. Calculating times based on starting point
    By bahgheera in forum Excel General
    Replies: 5
    Last Post: 06-05-2008, 01:09 PM
  5. Replies: 3
    Last Post: 08-19-2005, 09:05 AM

Tags for this Thread

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