Trying to add networkdays WITH holidays into an excel Gantt chart

BigGee

New Member
Joined
Sep 8, 2020
Messages
31
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello,
I have an excel spreadsheet with a chart that then feeds into a Gantt chart sheet that utilises Networkdays to exclude weekends in the bar chart section. My formula for this is "=IF(AND(N$2>=$G6,N$2<=$H6),IF(N$5<>"S",$J6/NETWORKDAYS($G6,$H6),0),"")"
However if I add the bank holiday list in where the last 0 is in the formula my bar (which includes a number to indicate the resource required for that particular day) remains unchanged. Can anyone advise if there is a way of doing this?
 

Attachments

  • excel networkdays.png
    excel networkdays.png
    18.8 KB · Views: 19

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You need to add the holiday list after the H6 & before the ) not where the 0 is.
 
Upvote 0
Thanks for that, sorry for the obvious mistake. I have corrected that but the "progress" bar (yellow bar) still allocates resource into those holiday days. However it doesnt do it for the weekends. What I want to do is treat those holidays that I have now added in the correct place as it does the weekend days and not include them when it aggregates the time required - is this something you could help with?
 
Upvote 0
Your formula does not enter anything into weekends because of IF(N$5<>"S" which is nothing todo with networkdays.
Do you have actual dates in row 4, or is it just numbers?
 
Upvote 0
Your formula does not enter anything into weekends because of IF(N$5<>"S" which is nothing todo with networkdays.
Do you have actual dates in row 4, or is it just numbers?
Ahh okay. row 4 is a formula
"=Project_Start-WEEKDAY(Project_Start,1)+2+7*(Display_Week-1)" in the first field and then +1 for each subsequent day.
 
Upvote 0
Your formula does not enter anything into weekends because of IF(N$5<>"S" which is nothing todo with networkdays.
Do you have actual dates in row 4, or is it just numbers?
Could I therefore add an additional IF statement saying IF(N$5<>"H" and annotate the holidays in row 5 as H for holidays and have it work correctly?
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,108
Members
452,302
Latest member
TaMere

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top