Conditional Formatting

bcowans

New Member
Joined
Oct 19, 2018
Messages
4
Help please!
I have two different columns; D and E. Both columns have dates in their cells.
I need column D's cell to turn yellow when column D's date exceed 1 month or 3 months, or 6 months from column E's cell.
I know how to apply the color but I can't seem to find the code that will calculate that D exceeds the time from of E.
Example: Column D = 9/13/18, Column E = 8/7/18.
Column D was due to be seen no later than 9/7/18. Since it is past due, how do I get the format to reflect that?
Using the =NOW and =TODAY code doesn't seem to work.
Thank you for any help!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Say the dates are in D2 and E2, then if you are OK with col D cell filling yellow if the D date exceeds the E date by more than 30 days try this CF formula:
Code:
=D2 > E2+30
 
Upvote 0
LOL sorry, I didn't think of putting the issue.
=D2-30>E2 I put that code and it worked.
Only issue now is, if it is the same date, different month, it will calculate it as late. Example: Column D = 9/7/18, Column E = 8/7/18.
Is there away to avoid that?
 
Upvote 0
LOL sorry, I didn't think of putting the issue.
=D2-30>E2 I put that code and it worked.
Only issue now is, if it is the same date, different month, it will calculate it as late. Example: Column D = 9/7/18, Column E = 8/7/18.
Is there away to avoid that?
Increase the number of days overdue by 1.
Code:
=D2 > E2 + 31
 
Upvote 0
Hi,

May be use this for 1 month:


Book1
DEF
29/13/20188/7/2018TRUE
39/7/20188/7/2018FALSE
Sheet334
Cell Formulas
RangeFormula
F2=D2>EDATE(E2,1)


Change the 1 (number 1) within the formula to 3 for 3 months, 6 for 6 months.
 
Upvote 0

Forum statistics

Threads
1,215,411
Messages
6,124,759
Members
449,187
Latest member
hermansoa

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