Cross referencing dates

Nharsh

New Member
Joined
Dec 2, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I'm trying to set up data table to conditionally format a calendar. The calendar I was trying to use is a formula based one that adjusts the dates and shifts weekdays as the year changes. What I want to do is have a data table to enter specific dates and have the calendar be conditionally formatted and color the dates that are entered into the table. I'm new to excel and I'm not even sure if can be done considering the calendar that I want to use is already completely formulas.
 

Attachments

  • Calendar.jpg
    Calendar.jpg
    230.4 KB · Views: 14

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi Nharsh,

It's impossible to give you a complete solution without knowing the contents of your sheet(s) and which columns are used. Here's an example with a few dates for FTP (which I see is in 2 columns so that's a complication which means I need 2 MATCH statements to check if the date is found) and just January where I assume the date shown is formatted as "d" to just show the day number. My example shows matching dates as beige.

I'm guessing the calendar already has at least one Conditional Format (CF) so days in other months are shown in light grey so I've added that as an example. NOTE: In the Conditional Format I've put the greying out CF first and selected "Stop if true" so it doesn't then highlight a matching date but in the wrong month (e.g. 2nd and 3rd February in my example).

NHarsh.xlsx
FGHIJKLMNOPQRST
1FTPs2021
2CompletedPaidCompletedPaidJanuary
3104-Jan-214925-Jan-21MonTueWedThuFriSatSun
4204-Jan-215029-Jan-2128293031123
5307-Jan-215102-Feb-2145678910
6411-Jan-215203-Feb-2111121314151617
7513-Jan-215318192021222324
8621-Jan-215425262728293031
9722-Jan-21551234567
10822-Jan-2156
11922-Jan-2157
121022-Jan-2158
Sheet1
Cell Formulas
RangeFormula
O4:T4O4=N4+1
N5:T9N5=N4+7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
N4:T9Expression=MONTH(N4)<>MONTH($Q$2)textYES
N4:T9Expression=OR(ISNUMBER(MATCH(N4,$G$3:$G$50,0)),ISNUMBER(MATCH(N4,$K$3:$K$26,0)))textNO


...and here's a couple of screenshots to show how the CF is set and the sequence of the two CFs in this example.

1638477855868.png


1638477878934.png
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

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