Excel Formulas to Highlight the Dates in Same Month and Year!!
Tags: excelformula, conditionalformattin, excelformulas
Published: 2021-03-25 12:03:38

---
title: Excel Formulas to Highlight the Dates in Same Month and Year!!
published: true
date: 2021-03-25 11:56:15 UTC
tags: ExcelFormula,Conditionalformattin,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-highlight-the-dates-in-same-month-and-year/
---

Conditional formatting in Excel can be used to easily format dates based on the criteria you specified. Today I introduce you to some formulas to **highlight the dates that belong to the same month and year in Excel**. Let’s jump into this article!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

[![Highlight dates in same month and year](https://geekexcel.com/wp-content/uploads/2021/03/EXCEL_SrBD7gS3OQ.png)](https://geekexcel.com/excel-formulas-to-highlight-the-dates-in-same-month-and-year/excel_srbd7gs3oq/#main)<figcaption id="caption-attachment-22669">Highlight dates in same month and year</figcaption>
## Generic Formula:

- You can use the below formula to highlight the dates that belongs to the same month and year in Excel.

**=[TEXT](https://geekexcel.com/list-of-text-functions-in-microsoft-excel-365/)(A1,”myyyy”)=TEXT([DATE](https://geekexcel.com/how-to-use-date-function-in-microsoft-excel-365/) (date),”myyyy”)**

## Syntax Explanations:

- **TEXT** – In Excel, the [**TEXT Function**](https://geekexcel.com/list-of-text-functions-in-microsoft-excel-365/) will simplify things when you come across data that has too much text.
- **DATE** – The [**DATE function**](https://geekexcel.com/how-to-use-date-function-in-microsoft-excel-365/) helps to combine three different values and returns them as a date.
- **A1** – It represents the input value.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.

## Example:

Refer to the below example.

- First, we will enter the input dates in **Column B** to **Column E**.
- Here we are going to highlight the dates which belong to the same month and year.

![Input Ranges](https://geekexcel.com/wp-content/uploads/2021/03/Input-Ranges-32.png)<figcaption id="caption-attachment-22670">Input Ranges</figcaption>

- So apply the above-given formula in the conditional formatting option.
- To know  **how to apply conditional formatting**  in Excel, just **refer to this article<u>:</u>[ How to Apply the Formula with Conditional Formatting In Excel?](https://geekexcel.com/how-to-apply-formula-with-conditional-formatting/)**
- Finally, we will get the result as shown below.

![Result](https://geekexcel.com/wp-content/uploads/2021/03/Result-36.png)<figcaption id="caption-attachment-22667">Result</figcaption>

## Bottom-Line:

In this tutorial, we have described the simple steps to **highlight the dates that belong to the same month and year in Excel**. Please state your **query** in the below **comment** section. We will assist you. Thank you for visiting our site!! To learn more, check out **[Geek Excel](https://geekexcel.com/) **and [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**

### Read Ahead:

- **[Excel Formulas to Highlight the Cells that contains Certain Value!!](https://geekexcel.com/excel-formulas-to-highlight-the-cells-that-contains-certain-value/)**
- **[Excel Formulas to Highlight the Blank Cells with Conditional Formatting!!](https://geekexcel.com/excel-formulas-to-highlight-the-blank-cells-with-conditional-formatting/)**