How to conditional formatting: turn date in column A to fill RED if a date in column B is +5 days more than to date in column A

james_simpson1998

New Member
Joined
Jul 30, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi all,

I am trying to do some conditional formatting.

What I am trying to achieve is this:

I want the date in cells in Column B to fill RED if the date in the cells in Column B is 5 days after the date in the cells in Column A.
And then I want to the same but for 4 days after to be ORANGE.
and then anything 3 days after to be GREEN.

Does that make sense and is it possible?

Thanks all,
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Select the cells in col B & use this formula
Excel Formula:
=B2-A2<=5
Assumes the first cell in the selected range is B2
 
Upvote 0
Select the cells in col B & use this formula
Excel Formula:
=B2-A2<=5
Assumes the first cell in the selected range is B2
Hi,

This has me confused, I am trying to highlight the date in, for example, cell A2 to fill RED if THIS date is 5 days ahead of the date in cell A1.
 
Upvote 0
Do you want to highlight A2 based on A1, A2 based on B2, or B2 based on A2?
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,509
Members
449,089
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