How to Highlight Dates Between Two Dates

HomeExcel FormulasHow to Highlight Dates Between Two Dates

You have dates in the column and you want to highlight all the dates which are between the range of two dates.

Let’s say you have a start date of 17-Jan-2017 and an end date of 19-Mar-2017, and from the dates column, you want to highlight all the cells in which date is between these two dates.

For this, the easiest way is to use conditional formatting. You can use a formula based on AND and DATE functions.

Just need to create a new rule in conditional formatting with this formula. Let’s follow these steps.

Steps to use CF to Highlight Dates Between Two Dates

  • First of all, select the range or column (A2:A20) where you have dates.
  • Now, go to Home Tab ⇢ Styles ⇢ Conditional Formatting ⇢ New Rule.
click on formula rule to highlight dates between two dates
  • Fron here, in New Rule window, select “Use a formula to determine which cell to format”.
  • After that, in formula input bar, enter below formula.
  • Finally, select a color from formatting option to apply to cells.
add formula to highlight dates between two dates.png
  • In the end, click OK.

Once you hit OK, all the cells where dates are within the range which you mentioned will get formatted with the color you have specified.

highlight dates between two dates in a column

How this CF formula works

AND function can take more than one condition and returns TRUE if all the conditions are TRUE, else FALSE.

So when you use this formula in conditional formatting it checks the date in the cell and returns TRUE if that date is within the date range. With that TRUE, conditional formatting apply color to all the cells with dates.

More on Excel Formulas

  1. Formulas in Conditional Formatting
  2. Highlight Blank Cells in Excel
  3. SUM Values Between Two Dates
  4. 5 Custom Date Formats
  5. Convert Text to Date

4 thoughts

Leave a Comment

Your email address will not be published.

  1. Hi Puneet,

    I’ve tried the this method but not got the result. Could you please tell me what is the issue with it.

  2. A perhaps slightly shorter means of restricting a conditional formula to highlight only when row numbers are even is to state:
    =and(iseven(row(a1)),type other condition(s) here)
    Similarly restrict to odd numbered rows by:
    =and(isodd(row(a1)),type other condition(s) here)
    Note, XL automatically coverts lower case text of standard terms to upper case upon pressing enter to finish

  3. XL accepts multiple different conditional formulae acting on any same area of a spreadsheet.
    Those show listed. Importantly XL applies them in the order listed but that can be altered. Sometimes the
    priority order is hard to remember & can become disordered. Consequently for easy recognition I begin priority 1 as:
    =and(1=1,enter condition here). Similarly begin subsequent priorities with =and(2=2, =and(3=3, etc.