Conditional formatting for adjacent cell

CJG19

New Member
Joined
Jul 12, 2021
Messages
40
Office Version
  1. 2010
Platform
  1. Windows
Hi All,

Just a really easy one, I am sure! I just cannot seem to get my conditional formatting to work.

1627391771592.png


If todays date is 2 weeks after the date in column c then highlight column d in red but if there is nothing in column c I would like no formatting at all.

TIA!

CJG19 :)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Use this Conditional Formatting formula for cell D4
Excel Formula:
=AND(C4>0,TODAY()-C4>14)
 
Upvote 0
Solution
Amazing, thank you Joe4, I was getting confused with ISBLANK functions!
 
Upvote 0
You are welcome!

One key is to understand that Excel actually stores dates as numbers (specifically, the number of days since 1/0/1900).
So you can use mathematical operators in date calculations.
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,031
Members
449,205
Latest member
Eggy66

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