+ Reply to Thread
Results 1 to 20 of 20

Create a spread for actuals against plan

  1. #1
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425

    Create a spread for actuals against plan

    Hi

    I'm trying to create a spread for actual values in comparison to the plan on a monthly basis.

    Each unique ID-month line to be considered separately and aggregated on a monthly basis.

    The catch is that distribution for planned value for next month should start only after distribution of values for first month are completed.

    Also, any overage from actual less plan ( + any carry forward from previous months plan) is included as actual in the month it happened

    The aim of this exercise is to find out if planned values were achieved, and at which points, also to understand our performance and to analyze how much backlog are we working against


    Posted also on : https://stackoverflow.com/questions/...s-in-excel-365
    Last edited by chullan88; 04-22-2024 at 03:14 PM.

  2. #2
    Forum Contributor
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    104

    Re: Create a spread for actuals against plan

    I'm likely over simplifying things:

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425

    Re: Create a spread for actuals against plan

    Hi jdelano,

    Thanks for your response.

    Can I copy this code to a button? And how do I account for any additional rows in the future?

    Cant open the downloaded file as my security settings dont allow.

  4. #4
    Forum Contributor
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    104

    Re: Create a spread for actuals against plan

    You can, I would just use a last row function (I didn't here given the summary was directly below the data so the last row would have been the summary section) and this was just a quick and dirty example

    lastRow = Activesheet.Cells(Activesheet.Rows.Count, "A").End(xlUp).Row ' this finds the last row used in column A

    There is this article on other ways as well https://spreadsheetplanet.com/excel-vba/find-last-row/

    EDIT: oops I was remiss in saying you're welcome, and you are, welcome.

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Create a spread for actuals against plan

    In your Output Table, why is cell E18 20 instead of 0? In the Feb-24 and May-24 months, when Plan is less than Actual, you show the Plan figures. Following the same pattern, shouldn't Mar-24 be 0?

  6. #6
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425

    Re: Create a spread for actuals against plan

    Hi josephteh,

    Ill explain a bit further. In the output table, rows represent Planned Month and the columns represent the Month actuals

    Jan plan is 100, actual is 80, so there is an unsatisfied plan of 20, we take this from Feb actuals ( 60) and is plotted in D16

    Feb plan is 40, we have remaining 40 actuals for Feb ( 60-20) so this is plotted in D17

    When coming to Mar, there is no plan in the month and also no unsatisifed plans from previous month, so all actuals is plotted in Mar itself ( E18)

    Hope its clear now

  7. #7
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425

    Re: Create a spread for actuals against plan

    Hi jdelano

    Im quite a noob with VBA
    Could you guide me on how to assign this code to a button?

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Create a spread for actuals against plan

    Quote Originally Posted by chullan88 View Post
    Jan plan is 100, actual is 80, so there is an unsatisfied plan of 20, we take this from Feb actuals ( 60) and is plotted in D16

    Feb plan is 40, we have remaining 40 actuals for Feb ( 60-20) so this is plotted in D17

    When coming to Mar, there is no plan in the month and also no unsatisifed plans from previous month, so all actuals is plotted in Mar itself ( E18)
    Thanks, it's clear now.

  9. #9
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425
    Quote Originally Posted by josephteh View Post
    Thanks, it's clear now.
    Hi josephteh

    Can you help me with this?

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,359

    Re: Create a spread for actuals against plan

    Be patient.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Create a spread for actuals against plan

    Sorry, unable to think of a solution.

  12. #12
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,264

    Re: Create a spread for actuals against plan

    I personally still don't understand the calculations based on your post 6 explanation...
    Perhaps that is why others have not yet hopped on board...
    I suggest an explanation in step by step format based on your data and explain exactly why your output has those values...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  13. #13
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425

    Re: Create a spread for actuals against plan

    Hi sintek,

    Sure, will try to explain the best way I can :

    The aim of this exercise to re-distribute the actuals data and find out when the planned values for each month were achieved.

    The output data table is formatted such as planned months are represented in rows and actual months in columns ( This is flexible and can be modified if required)

    So in the attached sheet, Row-16 represents the plan for Jan-24, sum of this row is 100 which is equal to the total plan for month Jan-24, cell C16 represents the actuals done in Jan-24 against the plan for Jan-24

    Similarly, D16 represents the actuals done in Feb-24 against the plan for Jan-24



    1) For the re-distribution of actuals, first step is to allocate the actuals for the first month against its plan. As plan and actuals wont be same in most of the scenarios, there can be two outcomes: Actual > Plan and Actual < Plan.

    For Actual > Plan, there is no need to do any further analysis. It will be allocated against the same months plan.

    For Actual < Plan, it creates a plan deficiency for that month i.e. planned value for that month has not been achieved

    2) If there is no plan deficiency from Step 1, next months allocation can proceed in the same way as Step 1

    But if there is a plan deficiency, allocation of actuals for the second month should not start unless this deficiency is cleared.


    So based on these conditions, the output in the table is obtained through the following steps:


    * Total Plan for Jan-24 is 100, Total actuals for Jan-24 is 80.
    So 80 is allocated against Jan-plan in C16, however there is a deficiency of 20 ( Plan 100 - Actual 80)
    So no allocation for Feb-24 actuals can be done against Feb-24 plan unless this 20 is cleared.

    * Total Plan for Feb-24 is 40, Total actuals for Feb-24 is 60.
    As explained, before starting allocation for Feb, 20 for Jan deficiency should be allocated ( D16)
    Now we start allocating the remaining feb-24 actuals which is 40 ( 60 - 20 used to cover Jan deficiency)
    It is allocated in D17
    There is no plan deficiency at this point

    * Total Plan for Mar-24 is 0, Total actuals for Mar-24 is 20.
    This is allocated directly against Mar-24 plan

    * Total Plan for Apr-24 is 40, Total actuals for Apr-24 is 0.
    This creates a plan deficiency of 40

    * Total Plan for May-24 is 10, Total actuals for May-24 is 50.
    So from 50, 40 is used to cover the previous deficiency for Apr and allocated in G19
    Remaining 10 is plotted against the plan for May-24 in G20


    So upon reading the output table, we infer that a part of the works done in Feb-24 was to cover the backlog from Jan-24. Also, that the target for Apr-24 was achieved only in May-24 and similarly many other insights


    The original dataset comprises 100s of rows, hence its not easy to analyze the performance manually .

    Hope its clear now
    Last edited by chullan88; 04-23-2024 at 02:03 PM.

  14. #14
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,264

    Re: Create a spread for actuals against plan

    Thank you for your clear explanation...This works with sample data...
    Please run a few scenarios and test...
    Please Login or Register  to view this content.
    Last edited by sintek; 04-24-2024 at 03:12 AM.

  15. #15
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425

    Re: Create a spread for actuals against plan

    Hi sintek,

    Thanks for your response.

    Tried a different dataset and encountered this issue.

  16. #16
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,264

    Re: Create a spread for actuals against plan

    please post expected result so that I can compare the two datasets...Am out for day but will check in later

  17. #17
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425
    Hi sintek

    I have included the expected result in the attachment
    Last edited by AliGW; 04-24-2024 at 04:10 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  18. #18
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,264

    Re: Create a spread for actuals against plan

    This...
    Untitled.png

    cannot be accurate...200 plan for Jan..Only 60 Actual...Carry over of 140 to Feb???

  19. #19
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    425

    Re: Create a spread for actuals against plan

    Hi sintek

    Thats right Jan planned is 200
    Actual is only 60
    So there is a deficiency of 140
    We take from the next month Feb 60, still the deficiency remains so we take from Mar and also May, still we can see that the plan is not met

  20. #20
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,264

    Re: Create a spread for actuals against plan

    chullan...I have not yet come accross a scenario where one could not find a solution..it all depends on the understanding of the requirement...
    Perhaps, I just can't grasp the reasoning for your calculations...With this extra 140 actual...after the month table there is still a value remaining...what happens to that if there were June & July entries...

    I think it would be best uploading a sample file with a few tables...perhaps 4 or so with expected results and explain the thought process of this result...
    Surely this explanation should, if followed, allow for all the results to be accurately recorded...

+ 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. Forecast vs Actuals variance based on Actuals input
    By Monsta92 in forum Excel General
    Replies: 7
    Last Post: 03-21-2023, 07:35 AM
  2. Replies: 3
    Last Post: 03-31-2020, 03:49 AM
  3. Spend Actuals vs Forecast vs Plan
    By avis_1989 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2017, 05:59 AM
  4. Replies: 0
    Last Post: 08-09-2017, 11:38 PM
  5. How to spread out annual sums across months for a business plan model?
    By bsidles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-15-2016, 03:05 PM
  6. [SOLVED] Trying to create a plan for Cable/Direct TV
    By endarmalk01 in forum Excel General
    Replies: 5
    Last Post: 02-26-2015, 04:19 PM
  7. to compare sales plan vs actuals from two different worksheets?
    By Prabhu Gowda in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-24-2006, 08:00 AM

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