Agile Gantt Chart Modification (no weekends)

BradMS

New Member
Joined
Jan 27, 2017
Messages
32
I would like to remove weekends on this chart.
I have accomplished modifying the days (J5 through BJ5) by adding "=J5+IF(WEEKDAY(J5)=6,3,1)". This removes weekends.

I'm stuck on the conditional formatting. As this still seems to use Saturday and Sunday.
Starting on Monday if I enter in 6 in H10 (No. Days), I would like it to fill all the way until Monday.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
You have just given a glimmer of what you are doing, so we have to make some assumptions to try to understand it.

From context I assume that row J are dates. Correct?

I also assume that row H is Task Duration. Correct?

I also assume that you have an existing conditional formatting rule, but you don't say what it is, or what the "it" is that you want to fill all the way to Monday.

Can you give more detail about the layout of your worksheet and existing CF rule?

The spoiler is that in your CF rule you probably need to use the WORKDAY function to determine the end date of a task, and use that result to compare to the dates in J to determine where your shading goes. But I can't give you an actual formula without more detail.
 
Upvote 0
Jazzer,
The project is from the default excel templates. If you click new, search agile. you will find it.
 
Upvote 0
the selected cell has conditional formatting of "AND($C8="On Track",I$5>=$F8,I$5<=$F8+$G8-1)"
 

Attachments

  • agile.png
    agile.png
    55.3 KB · Views: 453
Upvote 0
Only one Agile Gantt template that came up and it doesn't quite match your image but it's close enough that I can figure out what's going on.

Change your CF rule to

Excel Formula:
=AND($C8="On Track",I$5>=$F8,I$5<=WORKDAY($F8,$G8)-1)

This does not take holidays into account, but neither does the formula for incrementing the date you showed, so they match.
 
Upvote 0
This forum does not support file attachments. You can provide a link in a file-sharing cloud service, like Google Docs or Dropbox. You can also install an add-in (see the L2BB link in the toolbar) that can capture a range in a worksheet and reproduce here. You can't test new formulas or code but it makes a lot easier to see what's going on than just a screenshot. Here is an example of the output:

Agile Gantt chart1.xlsx
ABCDEFGHIJKLMNOPQR
4Company name4/15/2021Legend:On trackLow risk
5Project lead
6Project Start Date:3/31/2021April 
7Scrolling Increment:11256789121314
8
9Milestone descriptionCategoryAssigned toProgressStartDaysTFMTWTFMTW
11TITLE 1          
12Task 1GoalName25%3/31/20213           
13Task 2Milestone4/5/20211           
14Task 3Low Risk50%3/28/202110           
15Task 4Milestone4/20/20211           
16Task 5Med Risk10%4/6/20218           
17TITLE 2          
Light
Cell Formulas
RangeFormula
D4D4=WORKDAY(F16,$G16)-1
C6C6=IFERROR(IF(MIN(Milestones4352[Start])=0,TODAY(),B11(Milestones4352[Start])),TODAY())
I6I6=TEXT(I7,"mmmm")
P6P6=IF(TEXT(P7,"mmmm")=I6,"",TEXT(P7,"mmmm"))
I7I7=IFERROR(Project_Start+Scrolling_Increment,TODAY())
J7:R7J7=I7+IF(WEEKDAY(I7)=6,3,1)
I9:R9I9=LEFT(TEXT(I7,"ddd"),1)
I11:R17I11=IF(AND($C11="Goal",I$7>=$F11,I$7<=$F11+$G11-1),2,IF(AND($C11="Milestone",I$7>=$F11,I$7<=$F11+$G11-1),1,""))
F12F12=TODAY()
F13F13=TODAY()+5
F14F14=F12-3
F15F15=F12+20
F16F16=F12+6
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I7:BL36Expression=AND(TODAY()>=I$7,TODAY()<J$7)textNO
I6:BL6Expression=AND(I$7<=EOMONTH($I$7,1),I$7>EOMONTH($I$7,0))textNO
J6:BL6Expression=AND(J$7<=EOMONTH($I$7,2),J$7>EOMONTH($I$7,0),J$7>EOMONTH($I$7,1))textNO
I6:AM6Expression=I$7<=EOMONTH($I$7,0)textNO
E9:E36Other TypeDataBarNO
I10:BL35Other TypeIcon setNO
I10:BL35Expression=AND($C10="Low Risk",I$7>=$F10,I$7<=$F10+$G10-1)textYES
I10:BL35Expression=AND($C10="High Risk",I$7>=$F10,I$7<=$F10+$G10-1)textYES
I10:BL35Expression=AND($C10="On Track",I$7>=$F10,I$7<=$F10+$G10-1)textYES
I10:BL35Expression=AND($C10="Med Risk",I$7>=$F10,I$7<=$F10+$G10-1)textYES
I10:BL35Expression=AND(LEN($C10)=0,I$7>=$F10,I$7<=$F10+$G10-1)textYES
 
Upvote 0
Only one Agile Gantt template that came up and it doesn't quite match your image but it's close enough that I can figure out what's going on.

Change your CF rule to

Excel Formula:
=AND($C8="On Track",I$5>=$F8,I$5<=WORKDAY($F8,$G8)-1)

This does not take holidays into account, but neither does the formula for incrementing the date you showed, so they match.

I'm so sorry. Your solution ended up working!!
I added a column which messed everything up

Another addition I would like to add is
To the left In (A) of Tasks, would I be able to add a number system? When changing the number, it will re organize the list to change the timing order? In your example, task 3 is first then 5, what if I would like to make 5 before 3 without changing the date or any info? how much work would this be?
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,739
Members
448,989
Latest member
mariah3

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