Conditional Formatting to Highlight Maximum of Dates Four Days Apart

JohnTravolski

New Member
Joined
Nov 25, 2015
Messages
45
Office Version
  1. 2019
Platform
  1. Windows
I have a column of dates that are spaced at least two days apart but sometimes more, but always an even number. For example, the column may look like:

r/excel - Conditional Formatting to Highlight Maximum of Dates Four Days Apart

What I want is conditional formatting to highlight the maximum of every date where the date integer value modulo 4 has a remainder of 1 and another one highlighting in a different color where the remainder is 3. In other words, if I were to apply it to the above column, I should get this:

r/excel - Conditional Formatting to Highlight Maximum of Dates Four Days Apart

I would prefer to do this without any kind of helper column, if possible. What would the conditional formatting formula look like for this column?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
How about
+Fluff 1.xlsm
A
1
227/03/2022
329/03/2022
431/03/2022
502/04/2022
604/04/2022
708/04/2022
812/04/2022
914/04/2021
10
11
12
13
14
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A20Expression=A2=MAX(IF(MOD($A$2:$A$20,4)=3,$A$2:$A$20))textNO
A2:A20Expression=A2=MAX(IF(MOD($A$2:$A$20,4)=1,$A$2:$A$20))textNO
 
Upvote 0
How about
+Fluff 1.xlsm
A
1
227/03/2022
329/03/2022
431/03/2022
502/04/2022
604/04/2022
708/04/2022
812/04/2022
914/04/2021
10
11
12
13
14
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A20Expression=A2=MAX(IF(MOD($A$2:$A$20,4)=3,$A$2:$A$20))textNO
A2:A20Expression=A2=MAX(IF(MOD($A$2:$A$20,4)=1,$A$2:$A$20))textNO
Does this work in Office Professional Plus 2019? When I tried your formula it doesn't highlight anything and it lags the whole spreadsheet. I have the whole column selected when I enter the formula for conditional formatting. Is that the wrong way to do it?
 
Upvote 0
Do not use whole column references in array formulae, otherwise it is likely to slow everything down. Just select the used range & a little bit more.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

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