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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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,214,383
Messages
6,119,198
Members
448,874
Latest member
Lancelots

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