+ Reply to Thread
Results 1 to 5 of 5

Need help auto-updating a formula for week over week change

  1. #1
    Registered User
    Join Date
    12-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Need help auto-updating a formula for week over week change

    Hi all,

    I was wondering if there's a way to add a formula to calculate week over week % change automatically every week when I enter in new data. Please see the attached excel file for reference.

    What I would like to have is the ability for the formulas in c5 and f5 to be able to auto-update to the newest week and the previous week's data instead of manually having to update it each week. So if I were to add a new row with data for week beginning 12/2, the formula in c5 and f5 would automatically update to calculate the week over week variance. I tried researching prior to asking the question on this forum, and I think it may be possible to do it using the index match function, but I'm not sure how to apply it in this case.

    Thanks in advance for anyone that can help.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Need help auto-updating a formula for week over week change

    Hi and welcome to the forum

    Give this a shot...
    =(INDEX(C:C,MATCH(MAX($B:$B),$B:$B,0))-INDEX(C:C,MATCH(MAX($B:$B)-7,$B:$B,0)))/INDEX(C:C,MATCH(MAX($B:$B),$B:$B,0))

    Also on a side note, I dont see a need to merge C:E and F:H, merging causes all sorts of problems with formulas. Just widen C and F, then delete the extra columns
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Need help auto-updating a formula for week over week change

    Thanks FDibbins! That worked perfectly. Really appreciate all your help and advice!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Need help auto-updating a formula for week over week change

    Happy to help and thanks for the feedback

  5. #5
    Registered User
    Join Date
    07-14-2015
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Need help auto-updating a formula for week over week change

    I have a similar problem. I'm looking auto update week over week change but the data I'm looking at is daily. I was able to modify your formula by summing (indexing) each of the 7 most recent days and dividing them by the preceding 7 days, but that's an awfully long formula. I'm guessing there may be a shorter way? To display what I mean using the example above, please see the attached. I want to divide the yellow highlighted by the orange highlighted. This is my formula: =(INDEX(C:C,MATCH(MAX($B:$B),$B:$B,0))+INDEX(C:C,MATCH(MAX($B:$B)-1,$B:$B,0))+INDEX(C:C,MATCH(MAX($B:$B)-2,$B:$B,0))+INDEX(C:C,MATCH(MAX($B:$B)-3,$B:$B,0))+INDEX(C:C,MATCH(MAX($B:$B)-4,$B:$B,0))+INDEX(C:C,MATCH(MAX($B:$B)-5,$B:$B,0))+INDEX(C:C,MATCH(MAX($B:$B)-6,$B:$B,0)))/(INDEX(C:C,MATCH(MAX($B:$B)-7,$B:$B,0))+and so on for the preceding 7 days.

+ 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. Visualizing +/- change week-to-week
    By dtrimble in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-31-2013, 03:10 AM
  2. Updating worksheets from week to week...
    By looeej in forum Excel General
    Replies: 2
    Last Post: 03-27-2013, 01:16 PM
  3. How to: identify repeat offenders within a 3 week period (week per week basis)
    By Heloc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2012, 12:43 AM
  4. Change week row every week with clear cells
    By adamsurpren in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2012, 11:45 AM
  5. Replies: 11
    Last Post: 04-06-2011, 02:33 PM

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