+ Reply to Thread
Results 1 to 22 of 22

Planned Vs Actual Weeks behind or ahead calculation

  1. #1
    Registered User
    Join Date
    01-28-2022
    Location
    Porto, Portugal
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Planned Vs Actual Weeks behind or ahead calculation

    Hi there,
    On a simple weekly Planned vs Actual cumulative value comparison, I would like to calculate how many weeks behind or ahead the actual is
    The caveat is I would like to calculate it including a decimal case, ie I would like to know not only how many cells above or below the planned value would be but also how far in between cells it would be. (Ex: -3.8 weeks behind).
    Sample file with column attached with what the result should be
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Would you explain the arithmetic behind your required results? i.e. which cells contribute to the results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,358

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Appears to be

    =(E2-D2)/10

    ???
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    01-28-2022
    Location
    Porto, Portugal
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Please delete this post

    Can not find option to delete post on edit window.
    Last edited by Pedro Fernandes; 02-17-2022 at 03:22 AM.

  5. #5
    Registered User
    Join Date
    01-28-2022
    Location
    Porto, Portugal
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Can not find option to delete post on edit window.

    Can not find option to delete post on edit window.
    Last edited by Pedro Fernandes; 02-17-2022 at 03:22 AM.

  6. #6
    Registered User
    Join Date
    01-28-2022
    Location
    Porto, Portugal
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Quote Originally Posted by Richard Buttrey View Post
    Would you explain the arithmetic behind your required results? i.e. which cells contribute to the results.
    It only needs to compare Column E vs D.
    For each cell of column F I would like it to say the same Row on column E how many weeks ahead or behind it is from Column D.

  7. #7
    Registered User
    Join Date
    01-28-2022
    Location
    Porto, Portugal
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Quote Originally Posted by JohnTopley View Post
    Appears to be

    =(E2-D2)/10

    ???
    That would only work for the weekly planned 10 units every week of the example (exactly to make the expected values easier to list).
    I am looking for a formula that calculates regardless of the planned values.

  8. #8
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Planned Vs Actual Weeks behind or ahead calculation

    This might be the formula you need:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  9. #9
    Registered User
    Join Date
    01-28-2022
    Location
    Porto, Portugal
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Unfortunately that will only work if weekly planned values are always the same.
    Last edited by AliGW; 02-15-2022 at 08:11 AM. Reason: PLEASE don't quote unnecessarily!

  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,426

    Re: Planned Vs Actual Weeks behind or ahead calculation

    So you keep saying, yet the provided sample has every week at a planned value of 10!!! How did you expect your helpers to deduce that this was NOT a fixed value?

    Please provide a more realistic sample dataset with expected results manually calculated. Thanks.
    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
    Registered User
    Join Date
    01-28-2022
    Location
    Porto, Portugal
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Re: Planned Vs Actual Weeks behind or ahead calculation

    You are right Ali. Should have updated the file after the first replies.
    Attached revised planned and actuals with variability on both.

    Thanks for the input.
    Attached Files Attached Files
    Last edited by AliGW; 02-15-2022 at 10:37 AM. Reason: PLEASE don't quote unnecessarily!

  12. #12
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Planned Vs Actual Weeks behind or ahead calculation

    My formula from #8 is working, but now I am confused by your expected results...
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    01-28-2022
    Location
    Porto, Portugal
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Quote Originally Posted by PietBom View Post
    My formula from #8 is working, but now I am confused by your expected results...
    Thanks for the reply Pitbom.
    It does not work on variable planned values.
    I have attached a file with an explanation in blue on how the results are calculated and a graph illustrating it.
    Last edited by Pedro Fernandes; 02-17-2022 at 03:24 AM.

  14. #14
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Attached file could not be opened. Attach the file once again. In the file you show for few rows Manually show the calculations in detail, how you are getting the expected results.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  15. #15
    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,426

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Which file? They all open for me ...

  16. #16
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Post# 13 file was not opening when I tried. Now it is Ok.

  17. #17
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Quote Originally Posted by Pedro Fernandes View Post
    I have attached a file with an explanation in blue on how the results are calculated and a graph illustrating it.
    Sorry Pedro, I read your explanation in blue a few times, but could not put my finger on it.
    To me it is means: Weeks behind schedule is the time difference for the actual produced items and the time that it would it with the planned productivity (Qty / Time)
    In the attachment I made a bar chart to make it clear.
    I stil don't understand your explanation. Now you mention de middle of the week, which was not in your original question. And I don't understand your statement that it only works with a fixed quantity. In your second I see different quantities planned and my formula could easily be pulled down.
    Can you explain a bit more how it should work step by step to see how you come to your expected results.

  18. #18
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Pl see file.
    NOTE: columns H, I, J and K are helper columns

    ARRAY formulas in H and I columns
    In H2

    =MAX(IF($D$2:$D$22<E2,$D$2:$D$22,""))

    In I2

    =MIN(IF($D$2:$D$22>E2,$D$2:$D$22,""))

    These are normal formulas.
    In J2

    =INDEX($A$2:$A$22,MATCH(H2,$D$2:$D$22,0))

    In K2

    =INDEX($A$2:$A$22,MATCH(I2,$D$2:$D$22,0))

    In L2

    =(K2-((K2-J2)*(I2-E2)/(I2-H2))-A2)/7

    Then all copied down.

    To enter ARRAY formula
    Copy and paste the formula in cell
    Press F2
    Press Ctrl+Shift+Enter together
    Excel covers the formula with {}.
    Last edited by kvsrinivasamurthy; 02-20-2022 at 03:03 AM.

  19. #19
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Planned Vs Actual Weeks behind or ahead calculation

    @kvsrinivasamurthy,
    I must admit, your approach is better.
    Even with a small change it gives the same results as the TS expected:
    =MAX(IF($D$2:$D$22< = E2,$D$2:$D$22,""))
    Last edited by PietBom; 02-20-2022 at 06:21 PM.

  20. #20
    Registered User
    Join Date
    01-28-2022
    Location
    Porto, Portugal
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Re: Planned Vs Actual Weeks behind or ahead calculation

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see file.
    NOTE: columns H, I, J and K are helper columns

    ARRAY formulas in H and I columns
    In H2

    =MAX(IF($D$2:$D$22<E2,$D$2:$D$22,""))

    In I2

    =MIN(IF($D$2:$D$22>E2,$D$2:$D$22,""))

    These are normal formulas.
    In J2

    =INDEX($A$2:$A$22,MATCH(H2,$D$2:$D$22,0))

    In K2

    =INDEX($A$2:$A$22,MATCH(I2,$D$2:$D$22,0))

    In L2

    =(K2-((K2-J2)*(I2-E2)/(I2-H2))-A2)/7

    Then all copied down.

    To enter ARRAY formula
    Copy and paste the formula in cell
    Press F2
    Press Ctrl+Shift+Enter together
    Excel covers the formula with {}.
    Thank you kvsrinivasamurthy .
    Only one cell seems to show a small difference on line 17.

    Outside of this forum got a formula that seems to work well and without use of auxiliary columns.
    I have attached the file with the formula if it useful for anyone here.

    Thank you very much for everyone's assistance.

  21. #21
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Planned Vs Actual Weeks behind or ahead calculation

    It is a combination of all formulas. To make formula simpler I used helper columns.
    In Formula of L2 If K2,i2,J2,H2 are replaced by respective formula you will get result. But formula is lengthy.
    Ok .Happy your problem solved.

  22. #22
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Planned Vs Actual Weeks behind or ahead calculation

    @pedro,
    Did you ever think about a VBA solution ?
    The advantage for this question is that the calculations and formulas can be complex and you will not see helper formulas.
    the complexity is handeled in the VBA code and the user will not see the code.
    attached an example with VBA

+ 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] Planned vs Actual Formula
    By juan.doe in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-01-2021, 07:27 AM
  2. [SOLVED] Planned vs Actual Stacked Graph
    By BigErnKingpin in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-08-2019, 10:44 AM
  3. project status chart (PDR, CDR..) planned vs actual.
    By gefmos in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-24-2017, 08:50 AM
  4. Chart For Showing Planned Vs Actual
    By chullan88 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-15-2016, 10:13 AM
  5. Planned Time Vs Actual
    By namluke in forum Excel General
    Replies: 2
    Last Post: 01-06-2015, 06:52 AM
  6. Planned vs. Actual Gantt
    By mycon73 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-22-2011, 01:10 AM
  7. Excel 2007 : Gathering Planned and Actual hours
    By Kburtt in forum Excel General
    Replies: 0
    Last Post: 02-28-2011, 10:42 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