+ Reply to Thread
Results 1 to 5 of 5

13 week average of data using dynamic dates

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    Roswell, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    3

    13 week average of data using dynamic dates

    I need to get a 13 week average of data based on the current date each week. In addition, the average must be from a referenced row within that date column. I am currently using Hlookup’s for a 4 week average and was trying to avoid a lengthy formula for the 13 wk average if possible. Please see that attached example. Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: 13 week average of data using dynamic dates

    For 4-week average use
    =AVERAGE(OFFSET($F$1,ROW()-1,MATCH($B$1,$F$1:$BF$1,1)-5,1,4))
    For 13-week average use..
    =AVERAGE(OFFSET($F$1,ROW()-1,MATCH($B$1,$F$1:$BF$1,1)-14,1,13))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-02-2012
    Location
    Roswell, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: 13 week average of data using dynamic dates

    Thank you. I just can't seem to get it to work for me. Can you tell me what the Row() is doing for the formula? It appears it is referencing the cell one less than the active cell. I would really appreciate it.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: 13 week average of data using dynamic dates

    The Row() function simply returns the row number in which the formula is. Hence Row()-1 would be the previous row

  5. #5
    Registered User
    Join Date
    08-02-2012
    Location
    Roswell, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: 13 week average of data using dynamic dates

    I finally figured it out. Thanks so much!

+ 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