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

Data Analysis

  • How to Create Column Chart in Excel
  • Everything about Charts in Excel
  • How to create Checklist in Excel
  • Managing Conditional Formatting Rules in Excel
  • How To Sort One Column or Multiple Columns in Excel

References

  • Create hyperlink with VLOOKUP in Excel
  • How to get address of last cell in range in Excel
  • How to use Excel MMULT Function
  • Offset in Excel
  • How to get last row in mixed data with blanks in Excel

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation number multiple 100
  • Excel Data validation must contain specific text
  • Excel Data validation only dates between
  • Prevent invalid data entering in specific cells

Highlight dates between in Excel

by

This tutorial shows how to Highlight dates between in Excel using the example below;

Formula

=AND(A1>=date1,A1<=date2)
Highlight dates between in Excel

Explanation

If you want to highlight dates between two dates with conditional formatting, you can use a simple formula that uses the AND and DATE functions together. For example, if you have dates in the range B4:G11, and want to highlight cells that contain a date greater than August 1st, 2015, and less than November 1, 2015, select the range and create a new CF rule that uses this formula:

=AND(B4>=DATE(2015,8,1),B4<=DATE(2015,11,1))

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

Worked Example:   Highlight cells that begin with in Excel

Once you save the rule, you’ll see the dates between 8/1/2015 and 11/1/2015 are highlighted. Note we are including the start and end dates by using greater than or equal to (>=) and less than or equal to (<=)

How this formula works

The AND function takes multiple arguments and returns TRUE only when all arguments return TRUE. The DATE function creates a proper Excel date with given year, month, and day values. Because the reference to B4 is fully relative, it will update as the rule is applied to each cell in the range, and any dates that are both greater than 8/1/2015 and less than 11/1/2015 will be highlighted.

Worked Example:   Extract data with helper column in Excel

Use other cells for input

You don’t need to hard-code the dates into the rule. To make a more flexible rule, you can use other cells like variables in the formula. For example, you can name cell E2 “start” and cell G2 “end”, then rewrite the formula like so:

=AND(B4>=start,B4<=end)

When you change either date, the conditional formatting rule will respond instantly. By using other cells for input, and naming them as named ranges, you make the conditional formatting interactive and the formula is simpler and easier to read.

Worked Example:   Highlight rows that contain in Excel

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

How to Create Gantt Chart in Excel

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

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • Extract multiple matches into separate rows in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • NOT function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Display Days in month in Excel
  • How to calculate workdays per month in Excel
  • DATEVALUE function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate next day of week in Excel
  • How to calculate working days left in month in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Group times into unequal buckets in Excel
  • Group times into 3 hour buckets in Excel
  • If cell contains one of many things in Excel
  • Map text to numbers in Excel

General

  • Customize Ribbon In Excel
  • With vs Without Array Formula in Excel
  • How to get random value from list or table in Excel
  • How to calculate percent change in Excel
  • 231 Keyboard Shortcut Keys In Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning