+ Reply to Thread
Results 1 to 26 of 26

% complete versus planned level of progress with conditional formatting + proximity

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    % complete versus planned level of progress with conditional formatting + proximity

    Hi

    I want to be able to show a data bar for the % complete such that if someone reports they've '50% of the way through' but, when you compare today's date with the planned due date, that item should actually be 80% complete (and is therefore behind) so it would be clear which items were behind. What would be the best combo of formula / CF that you would recommend? What would the formula be in the cell, and what would it be in the CF field?

    AK9 contains the TODAY() date
    AL9 will be where we'll record % complete from the point of view of the item owner (should I put this as a % format?)
    AM9 planned due date

    In a further column or in the % complete column (not too fussed) I'd like to be able to show with colour whether the item is hugely behind, a bit behind, or basically on track as planned. Ideally it would be aligned to the result of the above calculation so you could see through the use of colour/data bars for eg, which are really behind, a bit behind, or pretty much on track. I'm not sure how to explain that better and can only hope it makes sense - that relationship of actual progress against planned progress by this date is what's key far more so than it is to say 'oh well you've only got 4 days left' - the number of days actually doesn't really matter anywhere near as much as the actual versus planned does.


    I'd also like, within my Due Date column, to be able to show the following:
    Red - only 5 or less working days left between today's date in col AK and due date in col AM
    Amber - only 6 - 10 working days left between today's date in col AK and due date in col AM
    Green - 11 or more working days left between today's date in col AK and due date in col AM.
    There's no relationship in the above at all to any % complete/progress elements, this is just to do with the basic no. of days left side of things.
    Again I'd need a formula for in the cell and one for CF (assuming that's what would be recommended). Just an appropriately highlighted cell fill colour would do for this.

    Be great to hear back with some thoughts and possible solutions.

    Very many thanks.

  2. #2
    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,169

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.

  3. #3
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Hi
    I hadn't attached a file as it was just the three cells with some very basic data types plus, I can't include 'manually calculated results' because that's the formula I'm asking about but here's the very basic table. I've endeavoured to attach, gonna try submitting the post and see if I've got it done ok.
    Attached Files Attached Files

  4. #4
    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,169

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Attached has the CF

    For the check on % completion you need the start date so:

    (Today()-Start date)/(Due Date - Start Date)

    Very simplistic as it assumes linear progression.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Thank you for the above doc - much appreciated and just what I was after for the second part of my question.

    However, I also wanted to be able to represent with colour coding, possibly using CF data bars (and likely using the Actual % Complete column where the manually entered % complete value is shown as a single digit Number value) to be able to show whether the 50% (say) was on track, a bit behind, or very behind. Are there formulas/CF you could provide for that (ie the first part of my question)?
    Last edited by Halesowenmum; 03-26-2021 at 08:13 AM.

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

    Re: % complete versus planned level of progress with conditional formatting + proximity

    If I understand the request and John's suggestion correctly:
    1. Put the start date in cells A4 and down
    2. Put the following into some column (i.e. F): =(B4/100)/((TODAY()-A4)/(C4-A4))
    3. Apply Data Bar conditional formatting to the cells with the above formula
    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.

  7. #7
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Oooh, thank you for this.

    Ok so let me understand what it's doing - in the eg where it's 50% reported progress is your column F saying that whilst the person estimates that they're 50% there, they should be 58% there by now - so they're behind (apologies, been a very long day).

    What I'd also like to be able to do is smack folks between the eyes (not literally) with some colour coding within that column such that:
    - Green would be anything better than 10% behind schedule.
    - Amber would be items between 10% and 25% behind schedule.
    - Red would be those more than 25% behind schedule.

    Now I did in the interim work with a colleague and he said "It can't be done with the =TODAY() formula" and "It can't be done with CF" (!) and he did some VBA for me. However, I'm not convinced it's working correctly. When he did it he told me after that if I dared to change any CF I had in the document it would "totally mess everything up" which is a worry in a way because, further CF may well be added - that's just the way documents get developed so I'm wondering is my normal development of this document has thrown it out. I can share that on here it that's of use.

    The VBA also covered off the following:
    - If progress was 0% it would show in red, but without a bar
    - If the Due Date changed (was extended or brought forward), the data bar would still react appropriately (it's not just the % complete that can tell you if you're behind or not, due dates can be extended or brought forward so it was made to work from either).

    With it being VBA it did it everything directly in the % Complete column - bars and coloration of - (although I'm not averse to having to have two cols as in your example). I always prefer simpler the better but I do need to really make it stand out so that if they're behind from where they actually should be for the today's date then it shows in the colour of the bars then they know whether they need to get their skates on or not!

    If you data bars solution can do this I'm very happy to go with that, otherwise be happy to share the VBA with you as an alternative approach if required.

  8. #8
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    I've just had chance to tidy up the document in order to share it on here. Please do take a look and give me your thoughts as to the VBA + CF combo as it doesn't look to be working to me.
    For info, the person who built this for me their VBA looks at today's date, due date, how many days since start, total duration of days in the given period, time elapsed as a %, difference as a % and I believe works off of that premise.
    Attached Files Attached Files

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

    Re: % complete versus planned level of progress with conditional formatting + proximity

    I don't know enough about VBA to say whether VBA and CF are compatible.
    I suggest that you ask one of the moderators to move this thread from the Formulas & Functions forum to the Programming / VBA / Macros forum.
    Sorry not to be of more help.

  10. #10
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Thank you - yes I have sent a message to ask for this thread to be moved.

    Would you have a sec to reply to the following query?:
    Ok so let me understand what it's doing - in the eg where it's 50% reported progress is your column F saying that whilst the person estimates that they're 50% there, they should be 58% there by now - so they're behind (apologies, been a very long day).

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

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Yes. For example in row 4 change the start date to March 28th and the Due date to April 18th.
    The formula in cell F4 displays 87.50%.
    If you press the F2 key to edit and then highlight the last portion of the formula ((TODAY()-A4)/(C4-A4)) and then press the F9 key you will see 0.571428571428571
    (Press Ctrl + z to return the portion of the formula)
    So by today, April 9th, the progress should be 57%, however according to B4 the progress is 50% or 87.50% of what it should be. (I hope that makes sense)
    Let us know if you have any questions.

  12. #12
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Thank you JeteMc - I don't think this will quite work for me in my scenario so wondering if you can assist further.

    Firstly I was hoping for several things:
    * That there could be red, amber or green colour to the data bars based on some kind of 'how much are you behind/on time' type of calculation
    * That the results when the item owner types in 'I'm at 50%' it would in the same cell create the data bars to show 50% but colour it to show it was behind / on time (all in that cell)

    For my needs I think being 87.5% of where it should be isn't the key piece of info - the fact they should be at 57% but they're only at 50% is far more relevant and would have more meaning I think to my users. So that's more what needs representing rather than anything else however, I don't think they even need to see these numbers - the red, amber green based on how far behind they are would be more relevant to them (hope that makes sense).

    Is there any way to do this within the cell - if not that's absolutely fine but it would be nice if I could do this just with a bit of formulas/CF in light of the fact my supplied VBA isn't working terribly well.

    I should also say, the 'start date' is, effectively, at all times, always going to be today's date ie TODAY() - there is no specific start date that we would need to record, we're just literally counting down from the POV of ok where are we today, how much time is left.
    Last edited by Halesowenmum; 04-09-2021 at 11:49 AM.

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

    Re: % complete versus planned level of progress with conditional formatting + proximity

    I don't understand how a percentage complete can be calculated if the start date is always TODAY(), it would seem that in that case the percentage complete would always be zero. Perhaps an example could clear that up.
    I can't find a way to make data bars change colors, perhaps someone else knows how, or perhaps it can be done with VBA.
    If a cell contains a formula and a value is then typed in the formula will be overwritten, so * two will not work using formulas.
    That said, this is what formulas can do:
    Column C, which may be moved and/or hidden for aesthetic purposes, shows the percentage that should be completed based on the start and due dates.
    Column G, which may be moved and/or hidden for aesthetic purposes, shows the percentage of the scheduled completion that has actually been completed using: =(B4/100)/(C4/100)
    The values in column G are used to fill column B:
    Green: =G4>=0.9)
    Amber: =AND(G4>=0.75,G4<0.9)
    Red: =G4<=0.74

  14. #14
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Hi

    I would have no idea whether a % completed could/couldn't be calculated using =TODAY().....

    What this is all about is the need to show, as of today where SHOULD you be % complete-wise with this item, and where ACTUALLY ARE YOU - is there disparity (behind (negative situation) or ahead (positive situation), or not. And of course often there is a disparity between where you should be and where the person reports they are.

    So it's today's date and the due date which are the parameters to work within because we're interested in how much time have you got left now to complete this item - it's a countdown if you like, not a calculation between two set dates where the start date is in the past - the 'start date' is always today, always. The no. of (working days preferably) left between today and the due date is what we have to work with. It's the relationship between today and the due date is what we're interested in.

    So let's say for an item there's 100 days left between today's date and the date of that meeting and the item owner says 'I'm 50% of the way through' but he should actually be 75% of the way through given the remaining no. of days, when he entered 50 into the % complete column, it would record his 50% and display it, but then he'd get visual feedback from an IN CELL DATA BAR using red amber or green which alerts any disparities ie "ahem, that's behind buddy, and it's behind enough that I'm going to make it amber or red so that person knows it".

    If the item is ahead of the game in terms of % completed that's been entered, or 100%, it would always be green.


    =TODAY() is used because I've got multiple people going into this document making edits and updates. I can't have it that I've got to go in every single day for the next 2 years of this IT implementation Programme I'm working on, and manually update all the cells to show today's date - hence my initial use of the =TODAY() formula. And if =TODAY() really cannot work and it needs to be a manual date, then the guy who did the VBA for me was right and that formula can't be used. But neither can it be a date I have to enter manually!

    Taking the descriptive notes the VBA guy gave in the VBA code he wrote, this is what his does (although again, it ain't working quite right from what I can see):
    - Specifies a data bar to go into the relevant column
    - Calculates % time elapsed
    - Calculate % difference between time elapsed and due date
    - Changes the data bars based on the % difference.
    I'm not experienced in VBA but he somehow has some line of code in there that inputs/creates (whatever, however) today's date as a manual date in the cells of the relevant col for this. I open the doc and without =TODAY() I always see today's date.

    Unfortunately whatever method I've used to 'contact the moderators' clearly hasn't been the correct one as I've not been able to get this thread moved - is there a specific link where I can do that successfully?

    As ever, all thoughts from multiple brains / info on actually how to get this thread moved would be very much appreciated. Many thanks indeed.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,677

    Re: % complete versus planned level of progress with conditional formatting + proximity

    I have had nor seen no contact from you - how exactly did you try to contact us? Where do you want the thread moving to? Are you still using Excel 2007? If not, please update your profile.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.

  16. #16
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,677

    Re: % complete versus planned level of progress with conditional formatting + proximity

    See if AL9 is any closer to what you want.

    Your posts are far too long, so I am afraid that I haven't had time to read them in full, but I suspect you might be overcomplicating things.

    You need to look at the set-up of the data bars - set them to percentage, not number. Then you need to make sure the rules are in the right order.
    Last edited by AliGW; 04-12-2021 at 03:25 AM.

  17. #17
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Demonstrates the reasons why not to mix VBA with on sheet formatting/formula.
    Use one or the other, not a 'mis-mash' of both - you have interference of your troublesome cell with a conflict in the code.
    Also the conditional formatting was working with a cell formatted % so calc was a % of % never getting above one.
    Simply formatted numerically with the correct application to bands now(0 to 60=red, 61 to 90=orange, 90 to 100=green)
    The VBA affecting the cell is iterated out and the last sheet reference should set recalculate (which did not appear to be happening in the Worksheet_Change event)
    Tip of the iceberg, I am surprised that the app ever worked properly.
    torachan.
    Attached Files Attached Files

  18. #18
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,677

    Re: % complete versus planned level of progress with conditional formatting + proximity

    @Torachan

    I agree - the OP would have been better starting from scratch. Based on the description, I think that it should all be achievable without code, but we would need a manual mock-up showing exactly what it should look like NOW.

    I can't include 'manually calculated results' because that's the formula I'm asking about
    Wrong. Forget about the formula - just tell us the values/colours you want - better still, SHOW them in the workbook (apply them MANUALLY). It's down to us to create a formula that will do what you want.
    Last edited by AliGW; 04-12-2021 at 04:44 AM.

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

    Re: % complete versus planned level of progress with conditional formatting + proximity

    So let's say for an item there's 100 days left between today's date and the date of that meeting and the item owner says 'I'm 50% of the way through' but he should actually be 75% of the way through given the remaining no. of days...
    How do you know that "he should be 75% of the way through given the remaining no. of days" if the only dates you have to work with are today's and the date of the meeting?

  20. #20
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    I don't/didn't want to or intend to use two approaches - I'm just trying to get to a solution - that's it. I'm reliant on what I'm told/given by others unfortunately - if I could do it all myself I obviously would. I noted that the VBA just didn't work - and when I'd first given the spreadsheet to my VBA man I'd not put it as a %, I'd just put it as a plain number value - he changed it to calculate on %s and wrote the VBA accordingly.

  21. #21
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Ok what I'm trying to get to is, there's a finite amount of time with a final date by which something must be done 100%. The timespan to the due date is from today always because it's a countdown. There is a minimum amount of progress you'd expect reasonably at any given point. And maybe it's more based on the relationship of the % progress reported and the due date only, and today's date is irrelevant, happy to say that the today's date may be a red herring if you think it is.

    We're hoping for 100% complete on or before the due date. If on the date they enter their % complete figure, between today and that due date they report 10% progress but the item should reasonably at this point (based on these dates/how close the due date is) be at more like 50% the data bar would show red or amber as appropriate - they're not making the progress they should make given how close the due date is.

  22. #22
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Wrong. Forget about the formula - just tell us the values/colours you want - better still, SHOW them in the workbook (apply them MANUALLY). It's down to us to create a formula that will do what you want.
    Hi - I will do but can't right now cos I've got to take this document to a board meeting - I'll try and get back with this later on today and get something to you.
    Last edited by AliGW; 04-14-2021 at 02:36 AM.

  23. #23
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,677

    Re: % complete versus planned level of progress with conditional formatting + proximity

    This would be great - thanks. A fresh start will probably clarify everything - looking forward to seeing it.

  24. #24
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Thanks so much AliGW, I'm attaching it now (I hope, successfully).
    Attached Files Attached Files
    Last edited by Halesowenmum; 04-19-2021 at 09:32 AM.

  25. #25
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    HI all, am seeking to find if anyone is able to review the above document so I could apply it and see if it renders my % progress bar working?!

    Many thanks.

  26. #26
    Registered User
    Join Date
    01-17-2013
    Location
    West Midlands
    MS-Off Ver
    MS365 Excel
    Posts
    24

    Re: % complete versus planned level of progress with conditional formatting + proximity

    Hey all (incl. AliGW) to see if anyone it able to assist with the % progress data bar 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. Conditional Formatting for Date Proximity
    By Jeniji in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2019, 09:48 PM
  2. Conditional Formatting for Planned vs Actual data in Pivot Table
    By BryceVBA in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-23-2018, 04:25 PM
  3. Replies: 1
    Last Post: 08-06-2014, 10:29 PM
  4. [SOLVED] Periods versus comma's in VBA conditional formatting formulas
    By ArnolddG in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2014, 04:17 PM
  5. [SOLVED] Conditional Formatting versus macro code inthis example -stuck how to solve myself
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2012, 08:11 PM
  6. Management Information System-monitoring planned activities against progress
    By Renildrah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2012, 11:21 AM
  7. To complete Progress Bar indicator level to 100%
    By ilyaskazi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-18-2005, 07:44 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