+ Reply to Thread
Results 1 to 6 of 6

Adding working days on weekends to a gantt chart

  1. #1
    Registered User
    Join Date
    12-23-2019
    Location
    Chorley
    MS-Off Ver
    office 365
    Posts
    19

    Adding working days on weekends to a gantt chart

    Hi,

    I have been trying to build a simple gantt chart in excel to use in work. I've basically just edited the built in templates provided with Excel. Someone on here gave me some formulas to include an end date rather than plan duration, and a formula to exclude weekends as working days. They told me there is a way to include weekends on certain projects by typing a W on that day which would tell excel to highlight that day as a working day. However, I cant seem to work out how to do it with the formula they provided. Probably because I've amended the Gantt chart slightly.

    Can anyone please help me out with this? I've uploaded the latest chart here so you can check it out.
    Attached Files Attached Files

  2. #2
    Forum Contributor shank_mis's Avatar
    Join Date
    09-08-2018
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    128

    Re: Adding working days on weekends to a gantt chart

    Hi Yannis,

    This sheet is working fine. Formula has been written in way where it ignores letter "S" and accept everything else. That's why it doesn't include Saturdays & Sundays.
    You can check the formula by clicking on Home >> Conditional Formatting >> Manage Rules
    Modify it if you like !!

  3. #3
    Registered User
    Join Date
    12-23-2019
    Location
    Chorley
    MS-Off Ver
    office 365
    Posts
    19

    Re: Adding working days on weekends to a gantt chart

    Hi,

    Yes the sheet is fine how it is. However, I want to include certain Saturdays within the sheet if we need to work the odd weekend.

    This is the formula I was given to make the sheet search for a W typed in and highlight that day.

    " =AND(OR(G9="w",G$8<>"S"),ActualBeyond)

    And, while in cell G9, the formula for PeriodInActual is:

    ='Project Planner'!G$6=MEDIAN('Project Planner'!G$6,'Project Planner'!$D9,WORKDAY('Project Planner'!$D9,'Project Planner'!$E9-1-COUNTIF(INDIRECT(ADDRESS(ROW(),MATCH('Project Planner'!$D9,'Project Planner'!$6:$6,0))&":"&ADDRESS(ROW(),MATCH(WORKDAY('Project Planner'!$D9,'Project Planner'!$E9-1),'Project Planner'!$6:$6,0))),"w")))

    Edit: Adding Explanation
    This is essentially what I've added to the formula:
    '-COUNTIF(INDIRECT(ADDRESS(ROW(),MATCH($D9,$6:$6,0))&":"&ADDRESS(ROW(),MATCH(WORKDAY($D9,$E9-1),$6:$6,0))),"w")

    The green part finds the start date, the blue finds the end date, the pink then counts the number of w's in that range
    "
    Last edited by AliGW; 01-09-2020 at 06:38 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Registered User
    Join Date
    12-23-2019
    Location
    Chorley
    MS-Off Ver
    office 365
    Posts
    19

    Re: Adding working days on weekends to a gantt chart

    The formulas that I was given was excellent and did exactly what I wanted them to. However, I took out some rules and columns that I didnt need so now the above formula doesnt work.

  5. #5
    Registered User
    Join Date
    12-23-2019
    Location
    Chorley
    MS-Off Ver
    office 365
    Posts
    19

    Re: Adding working days on weekends to a gantt chart

    I've figured it out now thanks anyway

  6. #6
    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
    81,052

    Re: Adding working days on weekends to a gantt chart

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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.

+ 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. Excluding Weekends & Adding End Date Column to Gantt Chart Template
    By Yannis07 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-07-2020, 02:54 AM
  2. Exclude weekends in a Gantt chart
    By bobelmore in forum Excel General
    Replies: 2
    Last Post: 10-18-2019, 04:44 PM
  3. [SOLVED] Remove weekends from a gantt chart
    By JNEWMAN in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-07-2019, 09:19 AM
  4. Removing weekends from Gantt Chart
    By jhamm2018 in forum Excel General
    Replies: 11
    Last Post: 06-12-2019, 11:41 PM
  5. Gantt Chart showing weekends
    By croix22 in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 07-25-2017, 04:34 PM
  6. [SOLVED] Adding the correct number of working days to the chart, skipping off days
    By Vitalite in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-15-2017, 03:31 AM
  7. Shading weekends in Gantt chart bars
    By neobavesten in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2010, 07:34 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