I'm trying to add a formula using conditional formatting to see if a cell(G10) falls within the previous 4 calendar quarters of a date in another cell(M2). I've not been able to find a way to make it work. Any suggestions?
I'm using MS 365 Excel
I'm using MS 365 Excel
Book1.xlsx | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | |||
1 | Service Performed | |||||||||||||||||||||
2 | Instrument Rack | Date | 6/25/2024 | 2 | Quarter | 2024 | ||||||||||||||||
3 | Source | Description | Freq. | Date Performed | ||||||||||||||||||
4 | 1 | Clean Instrument Rack | Q | 6/25/2024 | ||||||||||||||||||
5 | 1 | Visual Inspection | Q | 6/25/2024 | ||||||||||||||||||
6 | Air Supply | |||||||||||||||||||||
7 | Source | Description | Freq. | Date Performed | ||||||||||||||||||
8 | 1 | Inspect inlet pressure gauge | Q | 6/25/2024 | ||||||||||||||||||
9 | 1 | Relieve trapped water from filter cup | Q | 6/25/2024 | ||||||||||||||||||
10 | 1 | Change Coalescing Filter | A | 1/1/2022 | ||||||||||||||||||
11 | ||||||||||||||||||||||
Service Checklist |
Cell Formulas | ||
---|---|---|
Range | Formula | |
P2 | P2 | =ROUNDUP(MONTH(M2)/3,0) |
S2 | S2 | =YEAR(M2) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
G9:I9 | Expression | =(ROUNDUP(MONTH(G9)/3,0))<>P2 | text | NO |
G8:I8 | Expression | =(ROUNDUP(MONTH(G8)/3,0))<>P2 | text | NO |
G5:I5 | Expression | =(ROUNDUP(MONTH(G5)/3,0))<>P2 | text | NO |
G4:I4 | Expression | =(ROUNDUP(MONTH(G4)/3,0))<>P2 | text | NO |