Conditional Formatting based on month of today

Jess709

New Member
Joined
Apr 24, 2015
Messages
20
I am working on some conditional formatting based on a due date's relation to the current date. Here is what I'm trying to accomplish:

1. If the month of the due date (cell F4) is less than the month of the current date then highlight to red. This is what I used and it works fine: =MONTH(F3)<MONTH(TODAY())

2. If the month of the due date (cell F4) is the same month as the month of the current date then highlight in green. This is what I used and it works fine: =MONTH(F3)=MONTH(TODAY())

3. This is the problem item. If the month of the due date (cell F4) is greater than the month of the current date, BUT not more than 1 month greater than the current date, then highlight in yellow. For example, if the due date in cell F4 is 8/1/2017 and the current date is 3/3/2017 I don't want it to highlight that cell at all, because August is more than 1 month great than the current month. So in this scenario only dates in April would be highlighted.

Any help with the conditional formatting formula for #3 is greatly appreciated.

-Jessica
 

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.

Forum statistics

Threads
1,216,096
Messages
6,128,807
Members
449,468
Latest member
AGreen17

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