Question: How do I highlight dates that meet a criteria using conditional formatting?

highlight-dates-in-range-using-conditional-formatting1

Answer:

How to apply the conditional formatting formula in excel 2007:

  1. Select the range (A1:A20)
  2. Click "Home" tab on the ribbon
  3. Click "Conditional formatting"
  4. Click "New rule..."
  5. Click "Use a formula to determine which cells to format"
  6. Click "Format values where this formual is true" window.
  7. Type =IF((A1<$D$2)*(A1>$D$1), TRUE, FALSE)
  8. Click Format button
  9. Click "Fill" tab
  10. Select a color
  11. Click OK!
  12. Click OK!

Try changing dates in D1 and D2 and see different cells highlighted in column A.

To include the the start and the end date into the conditonal formatting formula, try this:

=IF((A1<=$D$2)*(A1>=$D$1), TRUE, FALSE)

highlight-dates-in-range-using-conditional-formatting

Download excel example file
highlight-dates-in-range-using-conditional-formatting.xls
(Excel 97-2003 Workbook *.xls)

Functions in this article:

IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE

  • Share/Bookmark

Related posts:

  1. Highlight duplicates where an adjacent column is in a date interval using conditional formatting in excel
  2. Highlight duplicates using conditional formatting in excel
  3. Highlight the second or more duplicates in two lists using conditional formatting in excel
  4. Highlight duplicates where adjacent cell value meets criteria using conditional formatting in excel
  5. Highlight duplicate values in a range using conditional formatting in excel
  6. Highlight smallest duplicate value in a column using conditional formatting in excel
  7. Highlight unique values and unique distinct values in a range using conditional formatting in excel
  8. Highlight duplicates where adjacent cell value meets criteria using conditional formatting in excel part 2
  9. Highlight common values in two lists using conditional formatting in excel
  10. How to create a unique list using conditional formatting in excel 2007