+ Reply to Thread
Results 1 to 8 of 8

Conditional formatting Progress Bar if Date is in Cell

  1. #1
    Registered User
    Join Date
    04-22-2020
    Location
    Santa Fe, New Mexico
    MS-Off Ver
    Office 365
    Posts
    4

    Conditional formatting Progress Bar if Date is in Cell

    I'm putting together a Gantt chart of sorts and I'm having issues figuring out the conditional formatting formula to show progress as completion dates are entered. The attached sheet isn't the actual chart, but should work as an example of what I'm trying to accomplish. I have 3 items I'm showing across a range of dates. A plan, a forecast, and a completion date. Since the plan and forecast are always going to show and have dates filled in across the entire range, I know I can use:

    Plan=AND(E$3>=$E21,E$3<=$BM21)
    Forecast=AND(E$3>=$J21,E$3<=$BR21)

    What I would like is for the complete bar/range to fill across (conditional formatting) as completion dates eventually are input. I currently do not have a conditional formatting for this row in the attached sheet but I filled it in as an example according to the entered completion dates.

    Any help would be appreciated.

    Regards,

    JT
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional formatting Progress Bar if Date is in Cell

    I am not clear on your overall scheme. Your Plan bar (blue) uses conditional formatting based on starting on the Plan date in column E and ending on the plan date in column BM. Your Forecast bar (black) does the same thing for columns J to BR. This by itself doesn't make sense to me because you have a lot of dates in between on row 21 that you seem to be ignoring.

    I am going to try and guess at what you want to do but I think you should rethink the whole solution.

    To do the same thing for your Complete dates, you need to do something similar but look at the earliest and latest Complete dates, instead of the first and last.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Also note that in your example, something is mismatched. Your Complete bar starts on 11/19/2019 but your first Complete date is 11/19/2020, so your earliest Complete date is 12/9/2019.

    Anyway, I have been a systems development project manager for over 30 years and I don't understand what you are trying to show in this Gantt chart.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-22-2020
    Location
    Santa Fe, New Mexico
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Conditional formatting Progress Bar if Date is in Cell

    Strange, I put a long response together and it disappeared after I submitted it. It may show up but just in case I'll thank you again in summary format.

    You nailed it. Thank you

    This isn't really my overall scheme. It's really a poor example of a gantt chart but the concept is similar. I tried to simplify things so I could get to the conditional formatting concept and I probably ended up confusing some people. The end product will look nothing like this, make sense, and look sharp. Thanks for catching my date error and helping me out.

    Regards,

    JT

  4. #4
    Registered User
    Join Date
    04-22-2020
    Location
    Santa Fe, New Mexico
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Conditional formatting Progress Bar if Date is in Cell

    Also, why does excel require a max(max( in the formula for this to work? I want to fully understand the logic.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional formatting Progress Bar if Date is in Cell

    It doesn't require it. I made a mistake.

    It will work but is not what I intended. The correct formula is
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional formatting Progress Bar if Date is in Cell

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon addreputationiconsmall.jpg below their name.

  7. #7
    Registered User
    Join Date
    04-22-2020
    Location
    Santa Fe, New Mexico
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Conditional formatting Progress Bar if Date is in Cell

    absolutely. thanks again.

    Just as an add on to this I was wondering if we decided to include ifs to the equation. Let's suppose I want to color the conditional formatting based on whether or not the forecast was past the plan date. I've been playing around with if statements and I keep coming up short. For example, if the forecast exceeds the plan then the conditional format appears red.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional formatting Progress Bar if Date is in Cell

    Quote Originally Posted by JTinKC View Post
    Let's suppose I want to color the conditional formatting based on whether or not the forecast was past the plan date. I've been playing around with if statements and I keep coming up short. For example, if the forecast exceeds the plan then the conditional format appears red.
    Which bar do you want to apply this to: Plan, Forecast, or Complete? Would you want the whole bar to be red, or just the portion that exceeds plan?

    This example colors the portion of the Forecast bar red that exceed the Plan bar.
    Attached Files Attached Files

+ 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. Excel chart
    By preeshma in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-18-2019, 10:38 AM
  2. [SOLVED] Conditional formatting to show progress of students in class
    By DrPips in forum Excel General
    Replies: 6
    Last Post: 10-20-2015, 07:48 AM
  3. Conditional Formatting to show progress against a target
    By shauncasey in forum Excel General
    Replies: 1
    Last Post: 06-05-2015, 06:40 AM
  4. Replies: 1
    Last Post: 08-06-2014, 10:29 PM
  5. [SOLVED] Progress Bar (conditional formatting)
    By Blackhawks in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-16-2014, 03:00 PM
  6. [SOLVED] Conditional Formatting - Progress Bar based on dates in row
    By RichTea88 in forum Excel General
    Replies: 3
    Last Post: 01-24-2013, 08:50 AM
  7. how to create a progress bar in conditional formatting.
    By boyabo in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-28-2012, 12:54 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