Merging two formulas for use in conditional formatting

maximillianrg

Board Regular
Joined
Aug 7, 2014
Messages
74
Office Version
  1. 2016
Platform
  1. Windows
Thank you for your help in advance

I'm trying to figure out how apply conditional formatting to a date in cell J49 bases on two factors, the date in cell J49 and the contents of cell A49, here is the logic. In the below examples, bad means conditional formatting would be applied (the date would be changed to RED), and good means conditional formatting would not be applied (the date would be black or default)
  • =IF(AND(A49=0,J49<>TODAY()),"bad","good") so if today is 2/6 and the date in cell J49 is not 2/6 AND cell A49 = 0 conditional formatting would be applied
  • =IF(AND(A49="",TODAY()-J49>2,"bad","good") so if today is 2/6 and the date in cell J49 was 2/4 or earlier conditional formatting would be applied
So what I'm trying to do is combine and modify the two formulas into one so that conditional formatting would be applied to the date in cell J49 based on those formulas

Thoughts?
 
Try:

=OR(AND(TODAY()-J49>=0,TODAY()-J49<=2,A49=""),AND(A49=0,TODAY()=J49))
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,214,974
Messages
6,122,536
Members
449,088
Latest member
RandomExceller01

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