How To Calculate the Range contains a specific date in Excel?
Tags: excelformula, excelformulas
Published: 2021-10-26 07:53:25

---
title: How To Calculate the Range contains a specific date in Excel?
published: true
date: 2021-10-25 09:57:48 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/how-to-calculate-the-range-contains-a-specific-date-in-excel/
---

Have you ever tried to calculate a range that contains a specific date? Do you have any good methods for solving this task in Excel? In this tutorial, I introduce some formulas which can quickly **calculate a range that contains a specific date in Excel**. Let’s dive 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)

## Generic Formula

- You can use the below given formula to calculate a range that contains a specific date.

```
=COUNTIFS(range,[dates](https://geekexcel.com/how-to-use-date-function-in-microsoft-excel-365/))>0

```

## Syntax Explanations

- **COUNTIFS** – This function helps to create a cell address from a given row and column.
- **Range**  – It represents the input range.
- **Parenthesis ()** – The purpose of this symbol is to group the elements.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Date** – It represents the input date given in the worksheet.

## Practical Explanation

- Firstly, you need to **create a sample dates** in the cell range **B5 to B16**.

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Sample-data-44.png)<figcaption>Sample data</figcaption>

- To test if a **range contains a specific date** , you have to use the following **formula** in the **[formula bar](https://geekexcel.com/how-to-use-formula-bar-for-various-purpose-in-excel-365/)**.

```
=COUNTIFS(E5,[dates](https://geekexcel.com/how-to-use-date-function-in-microsoft-excel-365/))>0

```

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Use-the-formula-4.png)<figcaption>Use the formula</figcaption>

- Then, the formula will display the result in the **cell F5**.

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Result-1.png)<figcaption>Output</figcaption>

- Now, to find the next result, you need to use the **formula** given below in **cell F6**.

```
=COUNTIFS(E6,[dates](https://geekexcel.com/how-to-use-date-function-in-microsoft-excel-365/))>0

```

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Use-the-formula-2-1.png)<figcaption>Use the formula</figcaption>

- After that, you will get the results as given below in **cell F6**.

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Result-2.png)<figcaption>Output</figcaption>

- Again, to find the third date result, you have to use the **formula** given below in **cell F7**.

```
=COUNTIFS(E7,[dates](https://geekexcel.com/how-to-use-date-function-in-microsoft-excel-365/))>0

```

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Use-the-formula-3-1.png)<figcaption>Use the formula</figcaption>

- Finally, it shows the result for third date in  **cell**  **F7**.

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/10/Result-3.png)<figcaption>Output</figcaption>

## Closure

Hope you like this tutorial on how to  **calculate a range that contains a specific date in Excel**. If you have any  **questions**  or  **suggestions**  regarding this lesson, feel free to use the  **comment**  section below to let us know.

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 Ahead:**

- **[Excel Formulas to Define Range Based on Cell Value ~ Quickly!!](https://geekexcel.com/excel-formulas-to-define-range-based-on-cell-value/)**
- **[How to Add named range in Microsoft Excel 365?](https://geekexcel.com/how-to-add-named-range-in-microsoft-excel-365/)**
- **[How to Create Application Level Events in Excel VBA?](https://geekexcel.com/how-to-create-application-level-events-in-excel-vba/)**
- **[Find Excel Range contains a value, not in another range in Excel](https://geekexcel.com/how-to-find-excel-range-contains-a-value-not-in-another-range-in-excel/)**
- **[How to Show all Formulas in Excel Office 365 ~ With Examples!!](https://geekexcel.com/show-all-formulas-in-excel/)**