+ Reply to Thread
Results 1 to 7 of 7

Simple Gantt Chart Conditional Formatting (New Column)

  1. #1
    Registered User
    Join Date
    10-07-2020
    Location
    Midland, TX
    MS-Off Ver
    2019
    Posts
    3

    Post Simple Gantt Chart Conditional Formatting (New Column)

    Hello everyone,

    I am using the Simple Gantt chart template from Vertex42 for work. My boss is requesting I add a new column in "G" for a "completed date". Say the task was completed 1 or 2 days before the predicted end date (F column, that I will rename "due date") this column would reflect that. Now, my question is how do I condition the bars under the calendar to turn green when a value is entered into the new "completed date" column in G. Also, is there a way I could turn the bars red if the current date is past the "due date" (end date, F column)? Thank you everyone in advance!
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Simple Gantt Chart Conditional Formatting (New Column)

    Amend the first formula like this
    =AND($F5="",G$3>=$D5,G$3<=$E5)

    Add a new conditional formatting
    =AND($F5<>"",G$3>=$D5,G$3<=$F5)

    F5= Completed Date
    E5=Due Date
    D5=Start Date

    G3= Calendar date in the Gantt chart (start date)

    Attached sheet FYR.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-07-2020
    Location
    Midland, TX
    MS-Off Ver
    2019
    Posts
    3

    Re: Simple Gantt Chart Conditional Formatting (New Column)

    Thank you so much for taking time to reply! Would it matter that on my chart my start date = E9, my Due date =F9, and my new completed date column will be in G9? My calendar start date is also in I5. Will this make a difference to the formulas you have provided? Again thanks for the help!
    Last edited by hb_helt; 10-08-2020 at 03:57 PM.

  4. #4
    Registered User
    Join Date
    10-07-2020
    Location
    Midland, TX
    MS-Off Ver
    2019
    Posts
    3

    Re: Simple Gantt Chart Conditional Formatting (New Column)

    I've tried attaching the excel file itself if that is any help!
    Attached Files Attached Files

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

    Re: Simple Gantt Chart Conditional Formatting (New Column)

    Perhaps the following will help.
    1. For Green: =AND(task_start<=J$5,task_end>=J$5,$G7<>"")
    2. For Red: =AND(task_start<=J$5,task_end>=J$5,$G7="",task_end< TODAY(),$D7<1)
    3. For Gray: =AND(task_start<=J$5,task_end>=J$5)
    Note that in the attached file the formulas in E3 and E10 are changed to illustrate how the conditional formatting rules work.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    11-07-2019
    Location
    USA
    MS-Off Ver
    2007
    Posts
    9

    Re: Simple Gantt Chart Conditional Formatting (New Column)

    Good morning All,
    I tried to use VBA to count how many cells with color on each column but no luck. The VBA won't work with the conditional formatting formula used to color the row. Thank you.
    Attached Files Attached Files
    Last edited by NavyChief; 10-17-2020 at 06:14 AM. Reason: Attachmen added

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

    Re: Simple Gantt Chart Conditional Formatting (New Column)

    Administrative Note:

    Hello NavyChief and Welcome to Excel Forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

    Let us know if you have any questions.

+ 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 w/ Gantt Chart
    By ormont02 in forum Excel General
    Replies: 10
    Last Post: 02-24-2019, 11:55 PM
  2. Gantt Chart Conditional formatting
    By jsneak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-30-2015, 07:19 AM
  3. Gantt Chart Conditional Formatting
    By tbrozovich in forum Excel General
    Replies: 6
    Last Post: 06-25-2015, 02:23 PM
  4. Conditional formatting to measure actual vs planned Gantt chart
    By arnab0711 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-19-2015, 04:19 PM
  5. Replies: 5
    Last Post: 10-04-2012, 07:01 AM
  6. Replies: 0
    Last Post: 07-13-2012, 06:40 PM
  7. Gantt Chart with conditional formatting
    By douglasdale in forum Excel General
    Replies: 2
    Last Post: 06-28-2010, 11:24 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