+ Reply to Thread
Results 1 to 11 of 11

Conditional Formatting w/ Gantt Chart

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    2

    Conditional Formatting w/ Gantt Chart

    Hi,

    I'm using Excel 2003, and I'm struggling to create a Gantt Chart with conditional formatting using months as the scale.

    I recently saw the post:

    http://www.excelforum.com/excel-prog...-in-cells.html

    This gives nearly what I need, but it doesn't seem to work if a mid-month date is give. For example:

    A1 B1 C1 D1 E1 F1
    Project # Start Date End Date 10/1/2009 11/1/2009 12/1/2009
    1 10/15/2009 12/15/2009 *******
    2 10/01/2009 12/01/2009 *************************

    The conditional formula used in the above example/post is:
    =AND(D$1<=$B2,D$1>=$C2).

    However, as you can see the way this formula works is that it results in cutting off the mid-month. I'd like to have it where Project 1 starting on Oct 15, it would include October as part of the project timeline.

    Please Help as this has been very frustrating to try and figure this out. Any thoughts/suggestions would be greatly appreciated!!

    ormont02
    Attached Files Attached Files
    Last edited by ormont02; 10-06-2009 at 10:12 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Conditional Formatting Trouble w/ Gantt Chart (Excel 2003)

    Replace the current CF formula with this:

    =and(month(E$1)>=month($B2),year(E$1)>=year($B2),month(E$1)<=month($C2),year(E$1)<=year($C2))
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    10-06-2009
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Conditional Formatting Trouble w/ Gantt Chart (Excel 2003)

    Palmetto you rock. Thanks for your help!

  4. #4
    Registered User
    Join Date
    02-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Smile Re: Conditional Formatting w/ Gantt Chart

    best answer yet for a very simple, uncomplicated gantt. Thx !

  5. #5
    Registered User
    Join Date
    10-15-2015
    Location
    Baton Rouge, LA
    MS-Off Ver
    2010
    Posts
    2

    Re: Conditional Formatting w/ Gantt Chart

    That solution doesn't work if your start date and end date span multiple years. It will leave gaps in the formatting bar. Is there a solution that addresses that?

    Thanks!

  6. #6
    Registered User
    Join Date
    10-15-2015
    Location
    Baton Rouge, LA
    MS-Off Ver
    2010
    Posts
    2

    Re: Conditional Formatting w/ Gantt Chart

    I figured out a work around so that the condition will remain true across multiple year ranges and still keep the month that the date has.

    =AND((E$1>=$B2-(DAY($B2)-1)),E$1<=$C2)

  7. #7
    Registered User
    Join Date
    11-18-2003
    Location
    Halifax, NS
    Posts
    2

    Thumbs up Re: Conditional Formatting w/ Gantt Chart

    Excellent thanks for that formula, used it to create this to complete this configurable 36 month Gantt timeline
    Start year, and the timeline color is configurable based on the status code for which the condition was added to your AND formula.

    Where =AND((G$3>=$C4-(DAY($C4)-1)),G$3<=$D4,$F4="Late") would be assigned a red interior format.

    Example attached

    Terry Magdy
    Project Manager, Supplier Development
    Pratt & Whitney Canada
    Attached Files Attached Files
    Terry Magdy

  8. #8
    Registered User
    Join Date
    01-14-2019
    Location
    Indiana
    MS-Off Ver
    2013
    Posts
    1

    Thumbs up Re: Conditional Formatting w/ Gantt Chart

    Terry, How did you create the PROJECT SUMMARY 1 document on your attachment? It shows as an embedded drawing. I love the design though.

    Thanks.

    R Shoener

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Conditional Formatting w/ Gantt Chart

    RShoener, welcome to the forum

    Unfortunately your post does not comply with Rule 4 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Registered User
    Join Date
    02-24-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    1

    Re: Conditional Formatting w/ Gantt Chart

    Hello, I am trying to download this file but it says I do not have the necessary permissions. Is there a way you could send it to me?

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Conditional Formatting w/ Gantt Chart

    I had no problem downloading the file from post #7, and, despite only having 1 post, I dont see why you would have an issue either - at least from the forum's side. Perhaps the server or anti-virus on your side is stopping you?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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