GANTT (horizontal bar chart) in excel

decksie

New Member
Joined
Apr 1, 2016
Messages
16
Hi

I'm trying to create a GANTT style chart (no float required). I've used a stacked bar chart, which has come close. That activity duration is in orange, but the bar starts from the lower bound of my horizontal axis (i.e I don't want the blue). How can I remedy this?

Is there a better way to do a GANTT?

Regards
gantt.PNG
 
Last edited:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I have used conditional formatting for Gnatt charts - rather than a graph
Did you specifically need a graph ?

heres an old example from 2014
Gnatt_Chart_Conditional_Formatting.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMAN
1Activity NamestartDurationFinish2/1/142/2/142/3/142/4/142/5/142/6/142/7/142/8/142/9/142/10/142/11/142/12/142/13/142/14/142/15/142/16/142/17/142/18/142/19/142/20/142/21/142/22/142/23/142/24/142/25/142/26/142/27/142/28/143/1/143/2/143/3/143/4/143/5/143/6/143/7/14
2Complete Misc. - Poplar Tent (Stage 2)18-Feb-14454-Apr-14
3Superstructure - Rocky River (Northbound)18-Feb-14133-Mar-14
4Drainage (Seg. 1, Ph 2)18-Feb-142010-Mar-14
5Complete Misc. - Rocky River (Northbound)18-Feb-14166-Mar-14
6Superstructure - Coddle Creek (Northbound)18-Feb-14122-Mar-14
7Drainage (Seg. 2, Ph 2)18-Feb-143626-Mar-14
8Drainage (Seg. 2, Ph 3)18-Feb-14725-Feb-14
9Removal of Temp Structure20-Feb-14146-Mar-14
10Anchor Barrier Wall ( 22 Pieces) (Punchlist Item)19-Feb-143021-Mar-14
11Drainage (Seg. 3, Ph 3)21-Feb-14457-Apr-14
12
Sheet1
Cell Formulas
RangeFormula
E2:E11E2=SUM(B2+C2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:CO11Expression=AND(F$1>=$B2,F$1<=$E2)textNO


I have others I think with Milestones etc
I'm out all day today - i do have others,
would this type of thing work for you

maybe post your data here using XL2BB add-in - see signature / menu
OR
post on a share like dropbox/onedrive/google


heres the example with milestones
Plan Gnant.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAI
2
3week commencing
4TaskDescriptionComment - Skills / People RequiredItem StatusStart DateFinish DateDuration17 Aug 1524 Aug 1531 Aug 1507 Sep 1514 Sep 1521 Sep 1528 Sep 1505 Oct 1512 Oct 1519 Oct 1526 Oct 1502 Nov 1509 Nov 1516 Nov 1523 Nov 1530 Nov 1507 Dec 1514 Dec 1521 Dec 1528 Dec 1504 Jan 1611 Jan 1618 Jan 1625 Jan 1601 Feb 1608 Feb 1615 Feb 16
5Tender Closed 8/20/159/12/15111100000000000000000000000
61footings Open 9/29/1510/10/15000000110000000000000000000
71.1foundations Open 10/11/1510/30/15000000011110000000000000000
81.2inspection Open MILESTONE11/2/15           M               
92brick laying Open 11/5/151/27/16000000000001111111111111000
103roofing Frame Closed 12/19/151/28/16000000000000000001111111000
113.1roof slate/tiling Open 1/28/161/29/16000000000000000000000001000
123.2inspection Open MILESTONE1/30/16                       M   
134Electrical Open 12/6/151/31/16000000000000000111111111000
Plan
Cell Formulas
RangeFormula
I4I4=MIN(F:F)-WEEKDAY(MIN(F:F),3)
J4:AI4J4=I4+7
I5:AI13I5=IF($F5="milestone", IF(AND(I$4<=$G5, J$4>$G5),"M",""), SUM((IF((I$4<$F5-MOD($F5-2,7)),0,IF((I$4>=$F5-MOD($F5-2,7)),1,0)))-(IF((I$4<$G5),0,IF((I$4>$G5),1,0)))))
F10F10=G10-40
F13F13=G13-56
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I5:AZ50Expression=AND(I5=1,$E5="closed")textYES
I4Expression=AND(TODAY()>=I4,TODAY()<J4)textYES
I4Expression=TODAY()>I4textYES
I5:AZ50Expression=AND(I5="M",$E5="open")textYES
I5:AZ50Expression=AND(I$4<TODAY(),I5=1)textYES
I5:AZ50Cell Value=1textYES
I5:AZ50Cell Value=0textYES
J4:AZ4Expression=AND(TODAY()>=J4,TODAY()<K4)textYES
J4:AZ4Expression=TODAY()>J4textYES
Cells with Data Validation
CellAllowCriteria
E5:E13ListOpen, Closed
 
Upvote 0
Thanks Etaf! I'll have a play with these and see how I go.

I see from your example you noticed the civil engineering data! I'm pulling in dates from P6 excel dumps using programme codes. I'm trying to be able to compare different programmes and how the elements move while also being able to switch between programmes. I had that much working ..... so I need to think about how I would adapt to your idea which would have the benefit of being able to use the condition formatting to distinguish different programmes, elements. But yeah the programme I'm reading from, generated in P6 and exported to excel are over 13000 rows long, so I'm trying to automate as far as possible.
 
Upvote 0
you are welcome, come back here if you need any further help/clarification or alternative charts
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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