## Excel formula if date is greater than 90 days from another date

Excel formula if date is greater than 90 days ,Excel is a powerful tool that can help you manage and analyze data with ease. One of the common tasks in Excel is to compare dates to see if they meet certain criteria. In this article, we will discuss how to use Excel formulas to check if a date is greater than 90 days from another date.

In Excel, dates are represented by serial numbers, where each day is represented by a unique number. For example, January 1, 1900, is represented by the number 1, and December 31, 9999, is represented by the number 2958465. Dates are stored as numbers, but they are displayed in a recognizable date format.

To calculate the number of days between two dates, you can subtract one date from another. The result will be the number of days between the two dates. For example, if you want to calculate the number of days between January 1, 2022, and March 31, 2022, you can use the formula:

=DATEDIF(“1/1/2022″,”3/31/2022″,”d”)

This formula will return the result as 89, which is the number of days between January 1, 2022, and March 31, 2022.

Now, let’s move on to how to check if a date is greater than 90 days from another date

**Using the IF function**

The IF function is a logical function that allows you to check whether a condition is true or false. You can use the IF function to check if a date is greater than 90 days from another date. Here is the formula:

=IF((TODAY()-A1)>90,”Yes”,”No”)

In this formula, A1 is the cell that contains the date you want to compare. TODAY() is a built-in function in Excel that returns the current date. The formula calculates the number of days between the current date and the date in cell A1. If the result is greater than 90, the formula returns “Yes”; otherwise, it returns “No”.

**Using the DATEDIF function**

The DATEDIF function is another function you can use to calculate the difference between two dates in days, months, or years. Here is the formula:

=IF(DATEDIF(A1,TODAY(),”d”)>90,”Yes”,”No”)

In this formula, A1 is the cell that contains the date you want to compare. The DATEDIF function calculates the number of days between the date in cell A1 and the current date. If the result is greater than 90, the formula returns “Yes”; otherwise, it returns “No”.

**Using the NETWORKDAYS function**

The NETWORKDAYS function is a built-in function in Excel that calculates the number of workdays between two dates. Here is the formula:

=IF(NETWORKDAYS(A1,TODAY())>90,”Yes”,”No”)

In this formula, A1 is the cell that contains the date you want to compare. The NETWORKDAYS function calculates the number of workdays between the date in cell A1 and the current date. If the result is greater than 90, the formula returns “Yes”; otherwise, it returns “No”.

**Using the EDATE function**

The EDATE function is another function you can use to calculate the difference between two dates in months. Here is the formula:

=IF(EDATE(A1,3)<TODAY(),”Yes”,”No”)

In this formula, A1 is the cell that contains the date you want to compare. The EDATE function calculates the date that is three months after the date in cell

Excel is a powerful tool that can help you manage and analyze your data quickly and easily. With the right formula, you can perform complex calculations and automate your data analysis. One common task that you might need to do in Excel is to check whether a date is greater than 90 days from another date. In this article, we will explore how to create an Excel formula to do just that.

W**hy Check if a Date is Greater than 90 Days from Another Date?**

There are many scenarios where you might need to check whether a date is greater than 90 days from another date. For example, you might need to:

Identify overdue payments: If you have a list of invoices and their due dates, you can use an Excel formula to check whether an invoice is more than 90 days overdue.

Track employee absences: If you need to track employee absences, you can use an Excel formula to identify employees who have been absent for more than 90 days.

Monitor project timelines: If you are managing a project, you can use an Excel formula to check whether a task is more than 90 days behind schedule.

In all of these scenarios, checking whether a date is greater than 90 days from another date can help you quickly identify potential issues and take appropriate action.

How to Check if a Date is Greater than 90 Days from Another Date in Excel

To check whether a date is greater than 90 days from another date in Excel, we can use the DATEDIF function along with some other functions. Here’s the formula:

=IF(DATEDIF(A2,B2,”d”)>90,”Yes”,”No”)

Let’s break this formula down:

IF: This is the function we use to create a logical test. If the test is true, we want to return “Yes”. If the test is false, we want to return “No”.

DATEDIF: This is the function we use to calculate the difference between two dates. We specify the start date (cell A2) and the end date (cell B2), and we want to calculate the difference in days (“d”).

90: This is the number of days we want to check. If the difference between the two dates is greater than 90 days, we want to return “Yes”.

“Yes” and “No”: These are the values we want to return based on the logical test.

Let’s take a closer look at the DATEDIF function. The syntax for the DATEDIF function is:

=DATEDIF(start_date, end_date, unit)

In our formula, we are using “d” as the unit, which means we want to calculate the difference between the two dates in days. Here are some other units you can use with the DATEDIF function:

“y”: Calculates the difference between the two dates in years.

“m”: Calculates the difference between the two dates in months.

“ym”: Calculates the difference between the two dates in months, ignoring years.

“md”: Calculates the difference between the two dates in days, ignoring years and months.

You can use the DATEDIF function to calculate the difference between two dates in a variety of ways, depending on your needs.

Now that we understand the formula, let’s see how we can use it in Excel.

**Q: What is the purpose of checking if a date is greater than 90 days from another date in Excel?**

A: There are various reasons why you may want to perform this check. For instance, if you are managing a project, you may want to track the progress of tasks and ensure that they are being completed within the specified timeframe. By checking if a task has gone beyond 90 days from its start date, you can identify delays and take corrective action. Similarly, if you are managing an inventory or tracking orders, you may want to check if there are any overdue deliveries.

**Q: How can I check if a date is greater than 90 days from another date in Excel?**

A: One way to do this is by using the DATEDIF function, which calculates the difference between two dates in years, months, or days. However, as mentioned in the article, the DATEDIF function is not available in all versions of Excel and may not always produce accurate results. Another way to perform this check is by using a combination of the TODAY function, the DATE function, and the IF function. This approach involves subtracting the two dates and checking if the result is greater than 90 days.

**Q: Can I use conditional formatting to highlight dates that are greater than 90 days from another date?**

A: Yes, you can use conditional formatting to apply formatting to cells that meet certain criteria, such as being greater than 90 days from another date. To do this, you can create a new rule in the Conditional Formatting dialog box and use the formula approach described in the article.

**Q: Can I modify the formula to check if a date is greater than a different number of days from another date?**

A: Yes, you can modify the formula to check if a date is greater than a different number of days by changing the value in the formula where it says “>90”. For instance, if you want to check if a date is greater than 60 days from another date, you would replace “>90” with “>60”. You can also replace the “Start_Date” and “End_Date” cell references in the formula with your own cell references as needed.

**Q: How can I apply the formula to a range of cells?**

A: If you want to apply the formula to a range of cells, you can select the cells where you want the formula to be applied and then enter the formula in the first cell. Next, you can copy the formula and use the Paste Special command to apply the formula to the remaining cells in the range. Alternatively, you can use the Fill Handle to drag the formula down to the cells below it.