Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I wonder if anyone can help. Ive created a Gantt chart in Excel that behaves more or less like a Gantt chart in Microsoft Project. Down the left-hand side of the worksheet is a list of tasks. Each task has a start date, an end date and a duration (the end date is arrived at by adding the duration to the start date using the WORKDAY function). So, thus: =(WORKDAY(C4,E4)-1) To the right of this task list, each column is assigned a date. The project start date (the first column in the Gantt chart) equals the start date of the first task. The header date for every other column in the Gantt chart is reached by adding the value of 1 to the date of the column on the left so all the user has to do is enter the project start date once, in one place, all the other dates are worked out automatically for them. Every cell in the Gantt chart, compares the date in its column header to start and end dates of the task in its row. If the date in the header falls between those two date, it returns the word yes otherwise it returns the word no. So the formula looks like the one below. =IF(AND(F2=$C$4,F2<=$D$4),"yes","no") The background of the Gantt chart is white and by default so is the text, so no is invisible. However, Ive applied conditional formatting to entire chart area. Wherever the word yes appears, both cell and text are formatted in the same shade of red. The result is a Gantt chart that populates correctly when the user enters simply the project start date and the duration of each task. What I want to do now, is introduce three types of task. I want each cell in the Gantt chart not only to check its column date against duration dates for the task, I also want it to check a validated list for the words Task 1, Task 2 and Task 3. When the value in the row is set to Task 1, if the column date falls within the duration of the rows task, I want the cell to return the value Task 1 instead of yes. I will then use conditional formatting to create three different coloured bars in the Gantt chart area: one colour for each task type. Can anyone tell me if this is possible and if so, how? Many thanks Karl |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a gantt chart using formulas/conditional formatting | Excel Discussion (Misc queries) | |||
Conditional Formatting for Formulas | Excel Discussion (Misc queries) | |||
how do i create gannt chart in excell? | Charts and Charting in Excel | |||
Conditional Formatting - Formulas | Excel Discussion (Misc queries) | |||
Help Using Formulas in Conditional Formatting | Excel Discussion (Misc queries) |