Conditional Formatting Based on Range and Date

34carrots

New Member
Joined
Sep 13, 2021
Messages
1
I please need help making a CF formula that will highlight a cell based on multiple text strings and a moving date range.

In my workbook:
  • Dynamic Sheet 1, Column A contains a list of employee numbers, as submitted via Google Form submissions
  • Dynamic Sheet 1, Column B contains a date, as submitted via Google Form submissions
  • Static Sheet 2, Column A contains a fixed list of employee numbers
I would like it so that the row containing an employee number in Static Sheet 2, Column A highlights if that employee number is not found in Dynamic Sheet 1, Column A when the date is between today or 4 days ago.

Any help would be much appreciated!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
If the ID is NOT in the list column A , then I assume there will NOT be a date entered
i maybe misreading, BUT i'm not sure how excel can find an ID that is not in the list and a date

Or are ALL the IDs entered within a 4 day period

a COUNTIFS()
=COUNTIFS($A$2:$A$8,$D2,$B$2:$B$8,">="&TODAY()-4)
will give a Zero if the ID is not entered within 4 days -
and so for Cond Frmt
=COUNTIFS($A$2:$A$8,$D2,$B$2:$B$8,">="&TODAY()-4)=0

Book2
ABCDE
1Emp IDDateSheet2-IDCount for ConFrmt
211/1/2111
329/14/2121
419/14/2130
559/14/2140
669/14/2151
779/14/2161
889/14/2171
Sheet1
Cell Formulas
RangeFormula
E2:E8E2=COUNTIFS($A$2:$A$8,$D2,$B$2:$B$8,">="&TODAY()-4)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D8Expression=COUNTIFS($A$2:$A$8,$D2,$B$2:$B$8,">="&TODAY()-4)=0textNO
 
Upvote 0

Forum statistics

Threads
1,215,695
Messages
6,126,266
Members
449,308
Latest member
VerifiedBleachersAttendee

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