Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Create Gantt Chart in Excel
  • Use Data Form to input, edit and delete records in Excel
  • How to create a Histogram in Excel
  • How to count table columns in Excel
  • How To Remove Duplicates In Excel Column Or Row?

References

  • Create hyperlink with VLOOKUP in Excel
  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to create dynamic named range with OFFSET in Excel
  • How to retrieve first match between two ranges in Excel

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation allow uppercase only
  • Excel Data validation only dates between
  • Excel Data validation exists in list
  • Excel Data validation date in next 30 days

Highlight rows with dates between In Excel

by

This tutorial shows how to Highlight rows with dates between In Excel using the example below;

Formula

=AND($A1>=start,$A1<=end)

Explanation

If you want to highlight rows that contain dates between two dates with conditional formatting, you can use a formula based on the AND and DATE functions. In the example, shown, the range B5:E11 has a conditional formatting rule applied using this formula:

=AND($C5>=start,$C5<=end)

Note: it’s important that CF formulas be entered relative to the “active cell” in the selection, which is assumed to be B5 in this case.

This formula refers to two named ranges: start (C2) and end (E2).

How this formula works

The AND function takes multiple arguments and returns TRUE only when all arguments return TRUE. Dates are just serial numbers in Excel, so earlier dates are always less than later dates. In the above formula, any dates that are greater than or equal to the start date AND less than or equal to the end date will pass both tests and the AND function will return TRUE, triggering the rule.

References to the start and end dates (C2 and E2) are absolute and will not change. References to the date in column C are “mixed” — the column is locked, but the row number is free to change.

Without named ranges

This formula refers to two named ranges: start (C2) and end (E2). Without using named ranges, the formula would look like this:

=AND($C5>=$C$2,$C5<=$E$2)

Embedding dates

This formula exposes the start and end input values directly on the worksheet, so that they can be easily changed. If you want to instead embed (hard-code) the dates directly into the formula, the formula would look like this:

=AND($C5>=DATE(2015,6,1),$C5<=DATE(2015,7,31))

The DATE function ensures that the date is properly recognized. It creates a proper Excel date with given year, month, and day values.

Post navigation

Previous Post:

COSH function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Excel Data validation require unique number

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Complete List of Excel Logical Functions, References and Examples
  • How to use Excel OR Function
  • How to use Excel AND Function
  • How to use Excel NOT Function
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to calculate nth day of week in month in Excel
  • Count dates in current month in Excel
  • How to calculate Quarter of Date in Excel
  • Steps to create Dynamic calendar grid in Excel
  • ISOWEEKNUM function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Running count group by n size in Excel
  • If cell contains one of many things in Excel
  • How to randomly assign people to groups in Excel
  • Group numbers with VLOOKUP in Excel
  • How to randomly assign data to groups in Excel

General

  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • Excel Ribbon Quick Overview For Beginners
  • How to get original price from percentage discount in Excel
  • List worksheet index numbers in Excel
  • How to get random value from list or table in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning