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,
 

Some videos you may like

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,238
Office Version
  1. 365
Platform
  1. Windows
Select the cells in col B & use this formula
Excel Formula:
=B2-A2<=5
Assumes the first cell in the selected range is B2
 

james_simpson1998

New Member
Joined
Jul 30, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
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.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,238
Office Version
  1. 365
Platform
  1. Windows
Do you want to highlight A2 based on A1, A2 based on B2, or B2 based on A2?
 

Watch MrExcel Video

Forum statistics

Threads
1,126,965
Messages
5,621,860
Members
415,862
Latest member
nascaline

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
Top