+ Reply to Thread
Results 1 to 3 of 3

How to combine the WORKDAY function with an IF function to build a working Gantt chart.

  1. #1
    Registered User
    Join Date
    07-07-2018
    Location
    London, England
    MS-Off Ver
    Google Sheets
    Posts
    2

    Question How to combine the WORKDAY function with an IF function to build a working Gantt chart.

    Hi there!

    I'm currently using the below formula to build a simple Gantt chart in Sheets, which ultimately places an x along my timeline based on the start date, duration (in days), and predicted end date of a task within a project:

    =if(and(K$5>=$E6,K$5<=$I6),"x","")

    From this, I then use conditional formatting to fill the boxes marked with x, which creates a simple bar chart. In this formula, K is the date along the top of my table (January 1st, January 2nd, and so on) and I is the estimated end date of that specific task.

    This is working great for me, but ideally I'd like it to exclude weekends and move to the next working day if at all possible. I believe I need to use the WORKDAY/WEEKDAY function in conjunction with this, but can't figure out where within my formula I need to place it.

    Could anybody kindly help? Many thanks in advance.
    Last edited by AliGW; 07-07-2018 at 04:18 AM. Reason: Moved to appropriate forum section.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: How to combine the WORKDAY function with an IF function to build a working Gantt chart

    I think you need WEEKDAY not WORKDAY: https://support.office.com/en-us/art...0-e404c190949a
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to combine the WORKDAY function with an IF function to build a working Gantt chart

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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. Gantt Chart Not Working Properly
    By kkundra in forum Excel General
    Replies: 1
    Last Post: 11-05-2014, 06:35 PM
  2. Start workday,Gantt chart
    By daredan in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-29-2014, 07:18 AM
  3. Workday.INTL or Workday function issue
    By junoon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 03:14 PM
  4. Need to have a gantt chart build automatically based on a series of questions
    By kaalbdm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2012, 05:55 PM
  5. Workday function for 6 day working
    By Ganesh7299 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2010, 07:00 PM
  6. WORKDAY function should take only sunday as non working day
    By irfanch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2008, 06:00 AM
  7. Workday function not working
    By goatherdered in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-12-2005, 09:46 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