+ Reply to Thread
Results 1 to 5 of 5

Conditional Moving Average Based on Start Date

  1. #1
    Registered User
    Join Date
    11-07-2018
    Location
    Florida
    MS-Off Ver
    Office 365
    Posts
    7

    Conditional Moving Average Based on Start Date

    I built a tool to compare a monthly savings forecast to actual savings, and then re-adjust go forward monthly forecast.

    There are 2 adjusted forecast scenarios -

    1) Use actual savings if available, use forecast savings if not.

    2) Use actual savings if available, use 3mos moving average of adjusted forecast scenario #1 if not.

    Final goal is to call out the difference between Adj Forecast #1 and #2 as benefit/risk due to trend.

    Scenario #1 was fairly simple, however, I am running into issues /w the 3mos MA in v10b; specifically because savings can begin and end in any month between 1/2019 and 12/2019.

    I think I can get conditional averaging to work /w averageif, however I am only getting errors.


    Example Workbooks attached; I am here to answer additional questions - thanks in advance!

    MA Example v10: Adjusted Forecast #2 (Start Date = January 2019) Working as Intended
    MA Example v10b: Adjusted Forecast #2 (Start Date = March 2019) 3mos MA not working as Intended
    Attached Files Attached Files
    Last edited by Brandoeats; 02-05-2019 at 01:28 PM. Reason: Removed pictures, added example workbooks

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Conditional Moving Average Based on Start Date

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    11-07-2018
    Location
    Florida
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Conditional Moving Average Based on Start Date

    Completed, and uploaded -

    Thanks!

    Quote Originally Posted by Pepe Le Mokko View Post
    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Registered User
    Join Date
    11-07-2018
    Location
    Florida
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Conditional Moving Average Based on Start Date

    any ideas out there?

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Conditional Moving Average Based on Start Date

    I believe that the formula in cell J12 on the 2019 Adj Forecast #2 sheet should read as follows although I get different numbers (when the formula is dragged across to U12) from those shown in columns W:AH
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula that was in K12 produced an error because C12>=K11 is not a criteria of the range '2019 Adj Forecast #1'!J12:L12
    For more information on the AVERAGEIF function see the article linked below.
    https://support.office.com/en-us/art...9-F5576D8AC642
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Conditional Formatting for Gant Chart based on : Start Date / End Date / Status
    By Stancur in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-23-2018, 04:13 AM
  2. Replies: 15
    Last Post: 05-26-2016, 11:52 PM
  3. [SOLVED] Creating an average from a set of data based on an initial start and end date and time
    By MKF2013 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2013, 02:01 PM
  4. Need to calculate average for a column based on moving start column
    By BonnD in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-03-2013, 08:35 AM
  5. [SOLVED] Monthly Average Based off a start and end date?
    By ImpetuousRacer in forum Excel General
    Replies: 9
    Last Post: 06-13-2012, 09:13 PM
  6. Replies: 8
    Last Post: 11-15-2011, 12:29 PM
  7. Moving ranges by start date
    By ashleyfox in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2005, 06:19 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