Excel Formulas: Check the Date is within a Last N months from Today!!
Tags: excelformula, excelformulas
Published: 2021-05-25 02:27:37

---
title: Excel Formulas: Check the Date is within a Last N months from Today!!
published: true
date: 2021-05-24 14:41:19 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-check-the-date-is-within-a-last-n-months-from-today/
---

In the previous post, we have learned the formulas to check the[**last N days**](https://geekexcel.com/excel-formulas-to-check-the-date-is-within-the-last-n-days-from-today/) from today in Excel. Likewise, here we are going to **check if a date is within the last N months from today 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)

[![Last N months](https://geekexcel.com/wp-content/uploads/2021/05/Last-N-months.png)](https://geekexcel.com/excel-formulas-check-the-date-is-within-a-last-n-months-from-today/last-n-months/#main)<figcaption id="caption-attachment-45539">Last N months</figcaption>

## Generic Formula:

- If you want to find the last N months, you can use the below formula.

**=[AND](https://geekexcel.com/how-to-use-logical-function-and-in-excel-365/)(A1>=[EOMONTH](https://geekexcel.com/how-to-use-eomonth-function-in-microsoft-excel-365/)([TODAY](https://geekexcel.com/how-to-use-excel-today-function-in-office-365-simple-steps/)(),-(n+1))+1,A1<EOMONTH(TODAY(),-1))**

## Syntax Explanations:

- **AND** – In Excel, the **[AND function](https://geekexcel.com/how-to-use-logical-function-and-in-excel-365/)** will help to check Multiple Conditions and returns TRUE if all the conditions are evaluated as true, otherwise returns FALSE.
- **TODAY** – The **[TODAY function](https://geekexcel.com/how-to-use-excel-today-function-in-office-365-simple-steps/)** helps to display the current date on your workbook.
- **EOMONTH** – This function returns the last day of the month after adding/subtracting a specified number of months to a date. Read more on the [**EOMONTH function**](https://geekexcel.com/how-to-use-eomonth-function-in-microsoft-excel-365/).
- **A1** – It specifies the input dates from your worksheet.
- **Plus operator (+)** – This symbol is used to add the values.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Minus Operator (-)** – This symbol will help to subtract any two values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.

## Practical Example:

Refer to the below example image.

- First, we will enter the input dates in **Column B**.
- Now we are going to check if the given date is within the last N number of months from today.

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

- For Example, we will specify the **N** number of months as **3**.
- Select any cell and type the above-given formula.

![Enter the formula](https://geekexcel.com/wp-content/uploads/2021/05/Enter-the-formula-79.png)<figcaption id="caption-attachment-45541">Enter the formula</figcaption>

- Finally, press  **ENTER**  to get the result out, if you need, drag the fill handle over range to apply the formula.

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

## Verdict:

In this tutorial, we have discussed the simple formulas to **check if a date is within the last N months from today in Excel**. Hope you like it. If you have any **doubts** regarding this topic or any other Excel VBA-related topic, ask in the **comments** section below.

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Related Articles:

- **[Excel Formulas to Get the Number of Workdays between Two Dates!!](https://geekexcel.com/excel-formulas-to-get-the-number-of-workdays-between-two-dates/)**
- **[Excel Formulas to Calculate the Quarter from the Given Date ~ Easy Tips!!](https://geekexcel.com/excel-formulas-to-calculate-the-quarter-from-the-given-date/)**
- **[How to Find the Last Column of Data in Excel Office 365?](https://geekexcel.com/how-to-find-the-last-column-of-data-in-excel-office-365/)**
- **[How to Validate Only Numbers in Cell in Excel Office 365?](https://geekexcel.com/how-to-validate-only-numbers-in-cell-in-excel-office-365/)**