Conditional format query on date formula2

BrutalLogiC

Active Member
Joined
Feb 26, 2006
Messages
267
Office Version
  1. 2016
Platform
  1. Windows
Hi, I have a column of dates and I want a formula that looks at these dates and highlights any that are within 3 years

e.g.
cell P15 = 31/01/05 this would not be highlighted
cell P16 = 31/01/16 this would not be highlighted
cell P17 = 14/10/12 this would be highlighted
cell P18 = "to book" this would not be highlighted

I also need a formula that looks at a column and highlights any dates. Is this possible?
 
Last edited:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
if A1 is a date and G1 = today's date

if(G1-A1<1095, highlight, do not highlight)

look at isdate function
 
Upvote 0
if A1 is a date and G1 = today's date

if(G1-A1<1095, highlight, do not highlight)

look at isdate function
is this to use with conditional formatting? I want the cell to be highlighted background green when the date falls within 3 years of today's date.
 
Upvote 0
for conditional formatting

highlight A1 then format, conditional formatting

formula is

=g1-a1 < 1095

and set patterns = green
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
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