formula to compare a date to todays date
I have a spreadsheet which has a column of dates, I would like to compare the dates with todays date to change the background colour of a cell to be either green, yellow or red, so that I can quickly look down the column to identify rows that require action.. i.e.
If the date in the column is more than a week ahead no action is required and the cell would show green.
If the date in the column is between 1 and 7 days ahead action is required and the cell would be yellow.
If the date in the column has passed action is overdue and the cell would be red.
Re: formula to compare a date to todays date
Hi PeteH, welcome to the forum.
you can use conditional formatting to achieve what you describe.
With your dates starting in A1:
Select all your dates, then click Format - Conditional Formatting.
Select Formula is and enter this formula:
click Format and select red as the Pattern color and hit OK.
Click Add - Formula is and enter this condition:
set the format to yellow
Add the third condition with
set the format to green and close the dialog boxes.
If the first cell of your selection is not A1, then adjust the formulae accordingly.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Search Engine Friendly URLs by vBSEO 3.6.0 RC 1