Excel Formulas to Check the Date is within the Last N Days from Today!!
Tags: excelformula, excelformulas
Published: 2021-05-25 02:26:46

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

Are you stuck with finding the date that is within the **last N days from today?** This article will introduce several tricks to solve them in Excel easily. Let’s get 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 days](https://geekexcel.com/wp-content/uploads/2021/05/Last-N-days.png)](https://geekexcel.com/excel-formulas-to-check-the-date-is-within-the-last-n-days-from-today/last-n-days/#main)<figcaption id="caption-attachment-45530">Last N days</figcaption

## General Formula:

- You can use the below formula to check the last N days from today in Excel.

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

## 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.
- **A1** – It specifies the input dates from your worksheet.
- **N** – It represents the N number of 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:

Let’s consider the below example image.

- Here, 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 days from today.

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

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

![Enter the formula](https://geekexcel.com/wp-content/uploads/2021/05/Enter-the-formula-78.png)<figcaption id="caption-attachment-45532">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-73.png)<figcaption id="caption-attachment-45531">Result</figcaption>

## Wind-Up:

From this chapter, you can get some clarification on how to check the date that is within the **last N days of today’s date in Excel**. We welcome your **comments** and **questions** about this lesson.

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/) **!! **

### Read Also:

- **[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/)**
- **[Excel Formulas to Find a Nth Day of Week in a Month ~ East Tricks!!](https://geekexcel.com/excel-formulas-to-find-a-nth-day-of-week-in-month/)**
- **[How to Enter a Time in Excel Worksheet? ~ A Useful Guide!!](https://geekexcel.com/enter-a-time-in-excel/)**