Conditional Formatting two dates:

FGaxha

Board Regular
Joined
Jan 10, 2023
Messages
221
Office Version
  1. 365
Platform
  1. Windows
Hi Master,
I need help to calculate with conditional formatting between two dates:
If B2:B8-G2 =<12month highlight cells in red and column C red flag including number of month, not number on C

1682087478148.png
 

Attachments

  • 1682087213830.png
    1682087213830.png
    34.6 KB · Views: 4
=AND($B2<>"",$B2<DATE(YEAR("1/1/2023")+1,MONTH("1/1/23"),DAY("1/1/23")))
 
Upvote 1

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi there,
Again please:
I want to start counting as 1/1/20203 instead of Today()??
1682202587145.png
 
Upvote 0
=IF(B2>TODAY(),DATEDIF(TODAY(),B2,"m"),DATEDIF(B2,TODAY(),"m")*-1)

=IF(B2>DATEVALUE("1/1/23"),DATEDIF(DATEVALUE("1/1/23"),B2,"m"),DATEDIF(B2,DATEVALUE("1/1/23"),"m")*-1)
 
Upvote 1

Forum statistics

Threads
1,215,206
Messages
6,123,638
Members
449,109
Latest member
Sebas8956

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