Share via

Conditional Formatting between two dates

Anonymous
2012-10-02T18:32:19+00:00

I am creating an Early Intervention Program spreadsheet that will keep track of disciplinary actions in Excel 2010. I have multiple categories (columns) of defensible actions. I want to color code the cell based on the date that was entered in column A, but is checked against the effective date of the program (cell B2). One column's criteria is if the date is between A4 and the next consecutive 365 days.

How do I setup that in conditional formatting?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2012-10-02T20:05:32+00:00

... One column's criteria is if the date is between A4 and the next consecutive 365 days.

Let's suppose that you want to color code any date in column D that is greater than or equal to the date in A4 AND less than the date in A4 plus one year.

Select D1 and tap Ctrl+<spacebar> to select all of column D with D1 as the active cell. Create a new Conditional Formatting Rule with Use a formula to determine which cells to format and supply the following for the Format values where this formula is true: 

=AND(ISNUMBER($D1),$D1>=$A$4,$D1<EDATE($A$4,12))

Click Format and select a Fill for the color code. Click OK to accept the formatting and then OK again to create the new rule.

AND function
ISNUMBER function
EDATE function

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful