+ Reply to Thread
Results 1 to 8 of 8

vacation GANTT Conditional formatting

  1. #1
    Registered User
    Join Date
    03-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    vacation GANTT Conditional formatting

    Hi All,

    I'm working on creating vacation plan Gantt for the team. I'm using conditional formatting to get the gantt working but gantt works for one range of date. Can any body help me in creating a rollup bar for Gantt that displays the bar as we see in Outlook meeting schedule and shows the team member holidays highlighted.

    Any suggestion or advice would be appreciated.

    Thank You all in advance.
    Attached Files Attached Files
    Last edited by DUKE888; 12-22-2009 at 03:26 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: vacation GANTT Conditional formatting

    Hi Duke,

    welcome to the forum.

    I'm not quite sure I understand what you want to do. You have conditional formatting in place to highlight cells with an "x". What exactly do you want to achieve on top of that?

  3. #3
    Registered User
    Join Date
    03-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: vacation GANTT Conditional formatting

    Teylyn,

    Thank You for your response. I apologize for my improper description. I have resource name in each row in column A. For each resource name, I have added a table starting column AS where I need to enter their vactation start & ending date. The date should reflect as a gantt chart for each resource name. I was able to get the first date range as a gantt but not the rest of'em. I tried to use offset in conditional formatting, but couldn't succeed as excel doesn't allow to use offset in conditional formatting.

    For the sake of simplicity, I have deleted conditional formatting and the formula in the attached file and used color code which might explain well.

    Thanks Again
    Attached Files Attached Files
    Last edited by DUKE888; 12-21-2009 at 11:20 AM.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: vacation GANTT Conditional formatting

    Hi Duke,

    see what you can do with the attached.

    The formula is too complex to be put into conditional formatting, so we need a two-stepped approach.

    - first create the xxxx in the gantt chart with an array formula
    - then conditionally format the xxxxx to appear as colored bars

    In cell G7 enter this formula

    =IF(MAX((G$5>=$AS$7:$AS$13)*(G$5<$AT$7:$AT$13))>0,"x","")

    this is an array formula and must be confirmed with Ctrl-Shift-Enter
    then copy the cell right

    In G8 use this formula

    =IF(MAX((G$5>=$AW$7:$AW$13)*(G$5<$AX$7:$AX$13))>0,"x","")
    again, confirm with CSE and then copy right. The only difference to the formula in G7 is the range highlighted in red above.

    copy the formula down column G and adjust the ranges to match the respective person, then confirm with CSE and copy right across the other columns.

    Now you will see xxxxxxxx bars appear in the gantt chart. Next these will be formatted to appear as color bars.

    Select G7 to AP7 and use this formula for conditional formatting Formula is

    =G7="x"

    in G8 to AP8 use

    =G8="x"

    Note the lack of $ signs in the cell reference. It must be relative to color individual cells.

    Set the format for row 7 to be yellow text on yellow fill when the condition is met, and row 8 to be orange text on orange fill.

    In the attached I've used the array formula in rows 7 to 10 and color formatted rows 7 and 8. I'll leave the rest to you to play with.

    let me know how you get on.

    cheers

  5. #5
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: vacation GANTT Conditional formatting

    Actually, IMO if u want to work with Gantt chart, u can use MS Project . This is very powerfull application.... imo
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: vacation GANTT Conditional formatting

    Unfortunately, MS Project is not included in the plain vanilla MS Office package, and many users don't have access to it. MS Project does not have the monopoly on Gantt charts, just because that's what most people visualise when they think of the application. Furthermore, a simple vacation planner would be absolute overkill in MS Project, and setting up a chart like the one discussed in this thread would require jumping through some very high hoops in Project. "imo"
    Last edited by teylyn; 12-22-2009 at 06:31 AM.

  7. #7
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: vacation GANTT Conditional formatting

    Don't know, I've never used Project (as usually i open this application and clicking some buttons trying to figure out why they are).
    But girls in our office make super projects overview and things like that... BTW, I make smth using charts... don't know how it is...
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: vacation GANTT Conditional formatting

    Teylyn and Vusal,

    I individually THANK YOU both of you for all your effort. Teylyn is right with the fact that MS Project is not given to all as it cost for licensing to use and Excel could be a great handy tool to create an application.

    Vusal, Thank You for sharing an additional thought.

    Your insights are helping this community.

    Cheers,
    Duke

+ 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