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.
Thanks
Pete
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:
=A1<today()
click Format and select red as the Pattern color and hit OK.
Click Add - Formula is and enter this condition:
=A4<=TODAY()+7
set the format to yellow
Add the third condition with
=A4>TODAY()+7
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks