Excel Formula for Within 90 Days: Step-by-Step Guide
In this article
To find dates within the next 90 days in Excel, use the formula =AND(A2>=TODAY(), A2<=TODAY()+90). This formula checks if a date in cell A2 is today or later, and also occurs within the 90-day window starting from the current date. This is essential for tracking upcoming deadlines, expiration dates, or project milestones that require immediate attention.
What You'll Need
- Microsoft Excel (any version from 2007 onwards)
- A dataset containing a column of dates formatted as Date cells
- A basic understanding of how to enter formulas into a cell
Step-by-Step
- Prepare Your Data: Ensure your dates are in a single column. For this example, we assume your dates are in Column A, starting at cell A2. Select the entire column and go to the Home tab, then in the Number group, ensure the dropdown is set to "Short Date". If Excel sees your dates as text, the formula will return a #VALUE! error.
- Select the Target Cell: Click on the cell where you want the result to appear (for example, B2). This column will act as your "Status" or "Alert" column.
- Enter the Basic Logic Formula: Type the following formula into the cell:
=AND(A2>=TODAY(), A2<=TODAY()+90). Here is the breakdown of what this is doing:TODAY(): This function tells Excel to look at the current system date. It updates automatically every time the workbook is opened or recalculated.A2>=TODAY(): This ensures the date is not in the past. Without this, any date from five years ago would technically be "less than 90 days from today".A2<=TODAY()+90: This adds 90 days to the current date and checks if the date in A2 falls on or before that future date.AND(): This wrapper ensures that BOTH conditions must be true for the formula to return TRUE.
- Apply to the Entire Range: Hover your mouse over the bottom-right corner of cell B2 until the cursor turns into a small black cross (the fill handle). Double-click the cross or click and drag it down to the bottom of your data list. Excel will automatically adjust the reference from A2 to A3, A4, and so on.
- Convert TRUE/FALSE to Custom Text: If you prefer to see "Due Soon" instead of "TRUE", wrap the formula in an IF statement:
=IF(AND(A2>=TODAY(), A2<=TODAY()+90), "Due Soon", ""). This tells Excel: if the 90-day condition is met, write "Due Soon"; otherwise, leave the cell blank. - Implement Conditional Formatting (Optional): To make these dates visually pop, select your date column (Column A). Go to Home > Conditional Formatting > New Rule. Select "Use a formula to determine which cells to format". Enter the formula
=AND(A2>=TODAY(), A2<=TODAY()+90). Click "Format", choose a fill color (like light red or yellow), and click OK. Now, any date falling within the next 90 days will be automatically highlighted.
Common Mistakes
One of the most frequent errors is forgetting the TODAY() function and instead typing a static date. If you type =A2<="12/31/2026", your spreadsheet will be obsolete the moment that date passes. Always use dynamic functions to ensure your tracking remains current without manual updates.
Another common mistake is ignoring the date format. Excel stores dates as serial numbers (e.g., today might be 45657). If your date is entered as "Jan 1st, 2026" but formatted as Text, Excel cannot perform math on it. You can tell if a date is text if it is left-aligned in the cell by default; true dates are right-aligned.
Users also often forget the "greater than today" part of the formula. If you only use =A2<=TODAY()+90, every single date in the past—including dates from decades ago—will return TRUE because they are all numerically less than the date 90 days from now. Always bound your range on both ends.
Tips
Create a Dynamic Window: Instead of hard-coding "90" into your formula, put the number 90 in a separate cell (e.g., cell E1). Change your formula to =AND(A2>=TODAY(), A2<=TODAY()+$E$1). The dollar signs create an absolute reference. Now, if you decide you want to track 60 days or 120 days instead, you only have to change one cell rather than editing every formula in your sheet.
Combine with Sorting: Once you have your TRUE/FALSE or "Due Soon" column, use the Filter tool (Data > Filter). Filter the status column to show only "Due Soon" and then sort the date column from Oldest to Newest. This creates a prioritized to-do list of the most urgent upcoming deadlines.
Handling Blank Cells: If you have empty cells in your date column, Excel may treat them as 0, which it interprets as a date in the year 1900. This can cause unexpected results. To avoid this, add a check for blank cells: =IF(A2="", "", IF(AND(A2>=TODAY(), A2<=TODAY()+90), "Due Soon", "")).
Troubleshooting
If your formula returns #VALUE!, the most likely cause is that your date is not recognized as a number. Check for leading spaces or non-standard date separators. A quick fix is to select the column, go to the Data tab, select "Text to Columns", click "Next" twice, and in the Step 3 wizard, select "Date" and the format (e.g., MDY) that matches your data. Click Finish to force Excel to convert the text to actual dates.
If the formula returns #NAME?, you likely misspelled a function. Double-check that TODAY() is spelled correctly and that you have included the parentheses. Remember that TODAY is a function, so it must have () after it, even though there is nothing inside the parentheses.
If the results seem "off" by a day, check your system clock settings. Excel relies on your computer's internal date and time. If your computer is set to the wrong time zone or date, the TODAY() function will be inaccurate. Additionally, ensure you are using the correct comparison operators; <= includes the 90th day, while < does not.
Frequently Asked Questions
Can I use this formula for dates in the past?
Yes. If you want to find dates that occurred within the last 90 days, change the formula to =AND(A2<=TODAY(), A2>=TODAY()-90). This looks backward from the current date.
Does this formula work in Google Sheets?
Yes, the AND, IF, and TODAY functions are identical in Google Sheets, and the logic for date addition works exactly the same way.
How do I highlight only dates that are exactly 90 days away?
Use a simple equality formula: =A2=TODAY()+90. This will only return TRUE for the specific date that falls exactly 90 days from today.
Will this formula update automatically every day?
Yes. Because the TODAY() function is volatile, it recalculates every time the worksheet is opened or any cell is edited, meaning your "within 90 days" window shifts forward by one day every midnight.
Can I track business days instead of calendar days?
Yes, but you cannot use simple addition. Use the WORKDAY function: =AND(A2>=TODAY(), A2<=WORKDAY(TODAY(), 90)). This will calculate 90 business days (excluding weekends) from today.