Excel Gantt chart w/ REPT()

TSJ4444

New Member
Joined
Sep 28, 2017
Messages
1
I thought I had a good idea, but I am not so sure now. I am trying to use the same concept for in-cell charts using the REPT() to make a Gantt chart. The problem I am running into is that I can't get a bar to cross cell boundaries without some white space, so it looks clunky. I have used formulas and conditional formatting in the past, which works fine, but in this case I was trying to find a method to start or end a bar in the middle of a cell. Is there a way to format to remove the white space? Or, is there another way to do it to accomplish the same result? Note that in the Excel sheet there are no gridlines, so where there are gridlines in the sample below, it is whitespace in the excel sheet.

Gantt

APAQARASATAUAV

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:75px;"><col style="width:75px;"><col style="width:68px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]11[/TD]

[TD="align: right"]13[/TD]
[TD="align: right"]30[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]12[/TD]
[TD="align: center"]start[/TD]
[TD="align: center"]end[/TD]
[TD="align: center"]duration[/TD]
[TD="colspan: 4, align: center"]month[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]13[/TD]

[TD="align: center"]11/01/17[/TD]
[TD="align: center"]12/01/17[/TD]
[TD="align: center"]01/01/18[/TD]
[TD="align: center"]02/01/18[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]14[/TD]
[TD="align: right"]15-Oct-17[/TD]
[TD="align: right"]14-Dec-17[/TD]
[TD="align: right"]2[/TD]
[TD="align: left"]|||||||||||||||||||||||||||||[/TD]
[TD="align: left"]|||||||||||||[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]15[/TD]
[TD="align: right"]15-Nov-17[/TD]
[TD="align: right"]14-Jan-18[/TD]
[TD="align: right"]2[/TD]
[TD="align: left"] ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||[/TD]
[TD="align: left"]||||||||||||||||||||||||||||||[/TD]
[TD="align: left"]|||||||||||||[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]16[/TD]
[TD="align: right"]07-Dec-17[/TD]
[TD="align: right"]20-Feb-18[/TD]
[TD="align: right"]2.5[/TD]

[TD="align: left"] |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||[/TD]
[TD="align: left"]||||||||||||||||||||||||||||||[/TD]
[TD="align: left"]|||||||||||||||||||[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]17[/TD]
[TD="align: right"]15-Dec-17[/TD]
[TD="align: right"]28-Feb-18[/TD]
[TD="align: right"]2.5[/TD]

[TD="align: left"] |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||[/TD]
[TD="align: left"]||||||||||||||||||||||||||||||[/TD]
[TD="align: left"]|||||||||||||||||||||||||||[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]18[/TD]
[TD="align: right"]05-Nov-17[/TD]
[TD="align: right"]20-Nov-17[/TD]
[TD="align: right"]0.5[/TD]
[TD="align: left"] |||||||||||||||||||||||||[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]19[/TD]
[TD="align: right"]26-Sep-17[/TD]
[TD="align: right"]26-Oct-17[/TD]
[TD="align: right"]1[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]20[/TD]
[TD="align: right"]05-Oct-17[/TD]
[TD="align: right"]04-Dec-17[/TD]
[TD="align: right"]2[/TD]
[TD="align: left"]|||||||||||||||||||||||||||||[/TD]
[TD="align: left"]|||[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]21[/TD]
[TD="align: right"]15-Nov-17[/TD]
[TD="align: right"]29-Jan-18[/TD]
[TD="align: right"]2.5[/TD]
[TD="align: left"] |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||[/TD]
[TD="align: left"]||||||||||||||||||||||||||||||[/TD]
[TD="align: left"]||||||||||||||||||||||||||||[/TD]

</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
The maximum column width is 255. You could easily fit eight months of your Gantt into one column.

Use a fixed-width or monospace font, Consolas or Courier New. These fonts have typewriter-like letter spacing—the vertical bar, "|" or U+007C, has the same width as the space character, " " or U+0020.

If you start the calendar at, say October 1, and the active dates for that row are October 15 through December 14, the base formula is

=REPT(" ", 14) & REPT("|", 60)

I've usually done this with type of in-cell Gantt with 0.5 width columns, formulas that return 1 or zero, and conditional formatting.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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