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
11 1330
12startenddurationmonth
13 11/01/1712/01/1701/01/1802/01/18
1415-Oct-1714-Dec-172||||||||||||||||||||||||||||||||||||||||||
1515-Nov-1714-Jan-182 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1607-Dec-1720-Feb-182.5 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1715-Dec-1728-Feb-182.5 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1805-Nov-1720-Nov-170.5 |||||||||||||||||||||||||
1926-Sep-1726-Oct-171
2005-Oct-1704-Dec-172||||||||||||||||||||||||||||||||
2115-Nov-1729-Jan-182.5 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

<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>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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,214,390
Messages
6,119,235
Members
448,879
Latest member
VanGirl

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