Colour Cells based on multiple criteria Date, Staff and Status.

morjo21

New Member
Joined
Jun 15, 2018
Messages
1
I have a Worksheet with 2 Tabs. Tab 1 = Planner, Tab 2 = Source Data.

Tab1 - Planner, Names and dates of the month
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]1/6/18[/TD]
[TD]2/6/18[/TD]
[TD]3/6/18[/TD]
[TD]4/6/18[/TD]
[TD]5/6/18[/TD]
[TD]6/6/18[/TD]
[TD]7/6/18[/TD]
[TD]8/6/18[/TD]
[TD]9/6/18[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Tab2 - Source Data, Names, Visit Label, Start Date, End Date <-dynamic data pulled from CRM.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Staff[/TD]
[TD]Name[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]Person1[/TD]
[TD]Label1[/TD]
[TD]1/6/18[/TD]
[TD]2/6/18[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]Person2[/TD]
[TD]Label2[/TD]
[TD]4/6/18[/TD]
[TD]7/6/18[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]Person3[/TD]
[TD]Label3[/TD]
[TD]2/6/18[/TD]
[TD]9/6/18[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]Person4[/TD]
[TD]Label4[/TD]
[TD]8/6/18[/TD]
[TD]9/6/18[/TD]
[TD]Scheduled[/TD]
[/TR]
</tbody>[/TABLE]

What I would like to do is Automatically fill the Cell Colour in the Planner based on the data from the Source tab. Bonus if a label can be added to the first cell.

Example:
When opening the spreadsheet it would fill Cells B2 and C2 in light green against Person 1 and add label "Label1" to the cell B2.
Cells I5 and J5 against Person4 will be Dark Green (because the status is different) with label "Lablel4"

Is this possible?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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