Highlighting Cells Between Dates

ajreed

New Member
Joined
Aug 27, 2018
Messages
1
I am designing a calendar for my department. I have dates set up incrementing by week along the top, with an event and start and end dates along the side. I have it set up to check if the start date is greater than the beginning of the week, and less than the beginning of the following week. If true, the date (DD) is shown in the corresponding cell. The end date is set up to display the same way. What I want to add next is a sort of a gantt chart feature. Basically, I want to highlight the cells between the start and end dates to be able to visualize the amount of time spent on a project. Does anyone have an idea of how I can accomplish this? I have pasted a small excerpt from my calendar to give a better understanding, hopefully the formatting matches up. Thanks!


[TABLE="width: 479"]
<colgroup><col><col><col><col span="8"></colgroup><tbody>[TR]
[TD]Start Date[/TD]
[TD]Target Date[/TD]
[TD][/TD]
[TD]3-Sep[/TD]
[TD]10-Sep[/TD]
[TD]17-Sep[/TD]
[TD]24-Sep[/TD]
[TD]1-Oct[/TD]
[TD]8-Oct[/TD]
[TD]15-Oct[/TD]
[TD]22-Oct[/TD]
[/TR]
[TR]
[TD]9/3/2018[/TD]
[TD]9/17/2018[/TD]
[TD][/TD]
[TD="align: right"]03[/TD]
[TD] [/TD]
[TD="align: right"]17[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]9/13/2018[/TD]
[TD]10/1/2018[/TD]
[TD][/TD]
[TD] [/TD]
[TD="align: right"]13[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]01[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]9/19/2018[/TD]
[TD]10/15/2018[/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]19[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]15[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]10/3/2018[/TD]
[TD]10/20/2018[/TD]
[TD][/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]03[/TD]
[TD] [/TD]
[TD="align: right"]20[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the MrExcel board!

If I have understood correctly, you can do this with Excel's standard Conditional Formatting. Post back if you need more specific instructions about how to set it up and tell us what columns the Start date & Target Date are in and what columns contain the Date headings.
For my set-up, select C2:Jxx and apply the CF (formulas) shown.

Excel Workbook
ABCDEFGHIJ
1Start DateTarget Date3-Sep10-Sep17-Sep24-Sep1-Oct8-Oct15-Oct22-Oct
23/09/201817/09/2018317
313/09/201810/01/2018131
419/09/201815/10/20181915
53/10/201820/10/2018320
Highlight Date Range
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C21. / Formula is =AND(COUNT($C2:C2),COUNT(C2:$J2))Abc
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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