Gantt Chart - turn of the year issue

nielf

Board Regular
Joined
Nov 13, 2012
Messages
69
Hi,

I have found this excellent way of creating a gantt chart using conditional formatting here on the site.

I have made som small changes as I would like to base my gantt chart on week numbers instead of years as used in the example. The week numbers are based on a dates using the WEEKNUM function.

The gantt chart works perfectly if the start- and end dates (in my case week numbers) are within the same year. However, if the start date is in 2015 and the end date is in 2016 the problem arises.

Even though I would like to have the output based on week numbers, I have the actual start and end dates in my data so I think it should be posssible to find a solution - I just can figure it out.

I have uploaded a sample file here.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,215,532
Messages
6,125,358
Members
449,221
Latest member
chriscavsib

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