Chart Timeline Help

antrawson

New Member
Joined
Jan 4, 2012
Messages
49
Howdy, I have a load of data in an excel table that populates a timeline chart. I have a lot of repeat tasks that currently sit on loads of lines. How can I get it so its sat on one? I cant quite work it out
Thanks

Project.xlsx
ABCDEFGHIJKLMNO
1PROJECT TIMELINE
2{42}
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30Project Start01/05/23columns used to create the chart
31CATEGORYTASKSTARTENDCOLORStartBlueRedGreenBrownOrangePurple
33Key DatesHoliday01/06/2301/06/23Blue01/06/23100000
34Holiday02/07/2304/07/23Blue02/07/23300000
35Holiday12/07/2313/07/23Blue12/07/23200000
36Holiday01/08/2304/08/23Blue01/08/23400000
3700/01/00000000
3800/01/00000000
3900/01/00000000
4000/01/00000000
4100/01/00000000
4200/01/00000000
4300/01/00000000
4400/01/00000000
4500/01/00000000
4600/01/00000000
4700/01/00000000
4800/01/00000000
4900/01/00000000
5000/01/00000000
5100/01/00000000
5200/01/00000000
5300/01/00000000
54Insert new rows above this one
ProjectTimeline
Cell Formulas
RangeFormula
F33:F53F33=IF(ISBLANK(C33),0,C33)
G33:L53G33=IF(ISBLANK($D33),0,IF($E33=G$31,$D33-$C33+1,0))
Cells with Data Validation
CellAllowCriteria
E32:E53List=$G$31:$L$31
 

Attachments

  • Screenshot 2023-06-13 at 16.14.40.png
    Screenshot 2023-06-13 at 16.14.40.png
    158.6 KB · Views: 8

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
i'm confused with what you are trying to streamline. It seems your calculations are all set and you don't have much more to do except copy/drag the formulas when needed?
 
Upvote 0
Oh, I see, i just looked at the mini sheet. Your image has the chart at the top... which did not come in the minisheet.
Can you explain how you are building the chart?
 
Upvote 0
I have seen Gantt charting in Excel before and all of them used conditional formatting to draw the bars. I have an example below. But you will have to calculate it using VBA based on the project start date and format using something like this

VBA Code:
    Dim bar As FormatCondition

    'Draw the blue bars
    Set bar = Range(ganttarea).FormatConditions.Add(Type:=xlExpression, Formula1:="=AND(B3>=$BL5,B3<=$BM5)")
    With bar
        .Interior.Color = RGB(0, 0, 255)
    End With

Anyway, the example without VBA uses and =AND expressing to see if the date in row 3 is between BL and BM.

1686696782905.png


timeline chart(3401).xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBM
1PROJECT TIMELINE
2June 1, 2023July 1, 2023
312345678910111213141516171819202122232425262728293012345678910111213141516171819202122232425262728293031
4Holiday 1TaskStartEnd
5Holiday 2Holiday 16/3/20236/21/2023
6Holiday 3Holiday 27/3/20237/5/2023
7Holiday 4Holiday 37/9/20237/9/2023
8Holiday 47/10/20237/15/2023
Sheet1
Cell Formulas
RangeFormula
A4:A7A4=BK5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B7:BJ7Expression=AND(B3>=$BL$8, B3<=$BM$8)textNO
B6:BJ6Expression=AND(B3>=$BL$7, B3<=$BM$7)textNO
B5:BJ5Expression=AND(B3>=$BL$6, B3<=$BM$6)textNO
B4:BJ4Expression=AND(B3>=$BL5,B3<=$BM5)textNO
 
Upvote 0
Apologies, I dont think I have explained all too well. I am basically wanting my input from the information that I put in to display on one line as opposed to one line for each. So basically like the top example in the photo attached
 

Attachments

  • Screenshot 2023-06-14 at 09.38.14.png
    Screenshot 2023-06-14 at 09.38.14.png
    35.2 KB · Views: 5
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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