+ Reply to Thread
Results 1 to 13 of 13

Adding the correct number of working days to the chart, skipping off days

  1. #1
    Forum Contributor
    Join Date
    05-20-2017
    Location
    Boston, US
    MS-Off Ver
    Mac 2011
    Posts
    139

    Adding the correct number of working days to the chart, skipping off days

    Hello.

    I understand that according to implicit rules of these wonderful forum it is better to add description of the task into the body of the thread, but in this case I can only explain what I would like to achieve by attaching the file. Sorry about that.

    I would like to create a (stacked bar) chart that takes shows the length of each task, starting at the start date and finishing at the exact finish date, skipping all off days.

    I have three small tables: Plan, Actual, and the table with data for the chart.

    Both the Plan and Actual tables correctly compute the actual finish date based on the number of actual working days, skipping all off-days, which are listed in a separate tab of the workbook.
    But in the third table, which is used for the chart also, I have the starting date and the number of working days. If I use these data points, I do get a nice chart (I want it in exactly this format of a stacked bar chart) but all finish dates are incorrect, of course, because they are computed by simply adding my defined working days to the start date.

    Please, help me to figure out how to make my chart finish each each bar on the correct finish date; how I shall change my plot series, or add some formula so it knows not only the correct start date but also the correct finish date?

    Thank you very much for your help!
    Attached Files Attached Files

  2. #2
    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
    80,838

    Re: Adding the correct number of working days to the chart, skipping off days

    I understand that according to implicit rules of these wonderful forum it is better to add description of the task into the body of the thread, but in this case I can only explain what I would like to achieve by attaching the file. Sorry about that.
    No problem at all, in fact it is preferable in many cases to explain what you want AND to attach a file!
    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.

  3. #3
    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
    80,838

    Re: Adding the correct number of working days to the chart, skipping off days

    I think you need to add a hidden column that calculates the actual date span as a number and use this for the chart's data series instead of the working days calculation.

  4. #4
    Forum Contributor
    Join Date
    05-20-2017
    Location
    Boston, US
    MS-Off Ver
    Mac 2011
    Posts
    139

    Re: Adding the correct number of working days to the chart, skipping off days

    Quote Originally Posted by AliGW View Post
    No problem at all, in fact it is preferable in many cases to explain what you want AND to attach a file!
    Thank you so much. I am doing my best to do so, but I am still learning.

  5. #5
    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
    80,838

    Re: Adding the correct number of working days to the chart, skipping off days

    I have made a suggestion in post #3 above.

  6. #6
    Forum Contributor
    Join Date
    05-20-2017
    Location
    Boston, US
    MS-Off Ver
    Mac 2011
    Posts
    139

    Re: Adding the correct number of working days to the chart, skipping off days

    Quote Originally Posted by AliGW View Post
    I have made a suggestion in post #3 above.
    Yes, thank you very much, I see it. I am thinking how to do that. One option I am trying now is to find the way to add all off-days to my workdays and store those in a new column. I will be back if I can't solve it. Thank you very much.

  7. #7
    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
    80,838

    Re: Adding the correct number of working days to the chart, skipping off days

    I suppose the entire data series for the chart could be hidden values. I'm sure you'll get it to work! Nice, simple chart, by the way - very clear.

    I often hide things underneath charts so that the columns don't actually have to be hidden.
    Last edited by AliGW; 07-15-2017 at 02:59 AM.

  8. #8
    Forum Contributor
    Join Date
    05-20-2017
    Location
    Boston, US
    MS-Off Ver
    Mac 2011
    Posts
    139

    Re: Adding the correct number of working days to the chart, skipping off days

    Quote Originally Posted by AliGW View Post
    I suppose the entire data series for the chart could be hidden values. I'm sure you'll get it to work! Nice, simple chart, by the way - very clear.

    I often hide things underneath charts so that the columns don't actually have to be hidden.
    Thank you very much. I am so happy to read this. I love learning excel, and each time get amazed by wonderful features.
    I have found a truly easy solution: I compute the days in the table for chart data as the difference between the end date and the start date; so I don't even need any more additional functions. Still I will try to think of other, maybe, more "fancy" solutions, just in case. )

  9. #9
    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
    80,838

    Re: Adding the correct number of working days to the chart, skipping off days

    I think that solution is neat enough, and you can still hide it on your sheet.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Forum Contributor
    Join Date
    05-20-2017
    Location
    Boston, US
    MS-Off Ver
    Mac 2011
    Posts
    139

    Re: Adding the correct number of working days to the chart, skipping off days

    Quote Originally Posted by AliGW View Post
    I think that solution is neat enough, and you can still hide it on your sheet.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Of course. ) One more little question: by saying "to hide" do you mean to hide all columns, which contain the data for the chart but leaving the Plan and Actual tables unhidden?

  11. #11
    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
    80,838

    Re: Adding the correct number of working days to the chart, skipping off days

    Yes - as I said, you could probably move your chart, create the data series tables there, and then plonk the chart back on top. That's how I'd do it in this case, I think.

  12. #12
    Forum Contributor
    Join Date
    05-20-2017
    Location
    Boston, US
    MS-Off Ver
    Mac 2011
    Posts
    139

    Re: Adding the correct number of working days to the chart, skipping off days

    Quote Originally Posted by AliGW View Post
    Yes - as I said, you could probably move your chart, create the data series tables there, and then plonk the chart back on top. That's how I'd do it in this case, I think.
    I see now. Thank you very much! )

  13. #13
    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
    80,838

    Re: Adding the correct number of working days to the chart, skipping off days

    You're welcome!

+ 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] Adding the correct number of days considering a starting date
    By jmmdic in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-29-2016, 08:44 AM
  2. [SOLVED] Formula Help: Determine days total from arrival to current date then stop adding days
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2016, 12:45 PM
  3. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  4. [SOLVED] Count 6 working days (excluding Sunday, Holidays & half days)
    By eve_star1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2015, 08:00 AM
  5. [SOLVED] Adding Total Number of Days Elapsed and Displaying >31 Days
    By cwwazy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2013, 08:18 AM
  6. Adding 30 working days to a date
    By Dawn V in forum Excel General
    Replies: 3
    Last Post: 06-16-2008, 08:19 AM
  7. Adding only working days
    By Leon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2005, 04:05 PM

Tags for this Thread

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