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!


Start DateTarget Date3-Sep10-Sep17-Sep24-Sep1-Oct8-Oct15-Oct22-Oct
9/3/20189/17/201803 17
9/13/201810/1/2018 13 01
9/19/201810/15/2018 19 15
10/3/201810/20/2018 03 20

<colgroup><col><col><col><col span="8"></colgroup><tbody>
</tbody>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,214,861
Messages
6,121,973
Members
449,059
Latest member
oculus

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