Table of Contents
Date Calculator in Excel Online
How to calculate 30/60/90 days from today in Excel
How this formula works
How to get 30/60/90 days before today in Excel
How to calculate N business after/prior to today
How to create a date calculator in Excel
Special tools to calculate dates based on today
Date and Time Wizard
Date Picker for Excel
How to highlight dates 30, 60 and 90 days from today
Practice workbook for download
Home Topics excel 30/60/90 days from today or before today - date calculator in Excel

30/60/90 days from today or before today - date calculator in Excel

Apr 07, 2025 am 10:04 AM

The tutorial shows how to create a date calculator in Excel exactly for your needs to find a date any N days from or before today, counting all days or only business days.

Are you looking to calculate the expiration date that is exactly 90 days from now? Or you wonder what date is 45 days after today? Or you need to know the date that occurred 60 days before today (counting only business days and all days)?

Whatever your task is, this tutorial will teach you how to make your own date calculator in Excel in under 5 minutes. If you don't have that much time, then you can use our online calculator to find the date that is the specified number of days after or prior to today.

Date Calculator in Excel Online

Want a quick solution to "what is 90 days from today" or "what is 60 days before today"? Type the number of days in the corresponding cell, press Enter, and you will immediately have all the answers:

Note. To view the embedded workbook, please allow marketing cookies.

Need to calculate 30 days from a given date or determine 60 business days prior to a certain date? Then use this date calculator.

Curious to know what formulas are used to calculate your dates? You will find them all and a lot more in the following examples.

How to calculate 30/60/90 days from today in Excel

To find a date N days from now, use the TODAY function to return the current date and add the desired number of days to it.

To get a date that occurs exactly 30 days from today: =TODAY() 30

To calculate 60 days from today: =TODAY() 60

What date is 90 days from now? I guess you already know how to get it :) =TODAY() 90

To make a generic today plus N days formula, input the number of days in some cell, say B3, and add that cell to the current date:

=TODAY() B3

Now, your users can type any number in the referenced cell and the formula will recalculate accordingly. As an example, let's find a date that occurs 45 days from today:

30/60/90 days from today or before today - date calculator in Excel

How this formula works

In its internal representation, Excel stores dates as serial numbers beginning with January 1, 1900, which is the number 1. So, the formula simply adds the two numbers together, the integer representing today's date and the number of days you specify. The TODAY() function is volatile and automatically updates every time the worksheet is opened or recalculated - so when you open the workbook tomorrow, your formula will recalculate for the current day.

At the moment of writing, today's date is April 19, 2018, which is represented by the serial number 43209. To find a date, say, 100 days from now, you actually perform the following calculations:

=TODAY() 100

= April 19, 2018 100

= 43209 100

= 43309

Convert the serial number 43209 to the Date format, and you'll get July 28, 2018, which is exactly 100 days after today.

How to get 30/60/90 days before today in Excel

To calculate N days before today, subtract the required number of days from the current date. For example:

90 days before today: =TODAY()-90

60 days prior to today: =TODAY()-60

45 days before today: =TODAY()-45

Or, make a generic today minus N days formula based on a cell reference:

=TODAY()-B3

In the screenshot below, we calculate a date that occurred 30 days before today.

30/60/90 days from today or before today - date calculator in Excel

How to calculate N business after/prior to today

As you probably know, Microsoft Excel has a few functions to calculate working days based on a start date as well as between any two dates that you specify.

In the below examples, we will be using the WORKDAY function, which returns a date that occurs a given number of working days ahead of or prior to the start date, excluding weekends (Saturday and Sunday). If your weekends are different, then use the WORKDAY.INTL function that allows custom weekend parameters.

So, to find a date N business days from today, use this generic formula:

WORKDAY(TODAY(), N days)

Here are a few examples:

10 business days from today =WORKDAY(TODAY(), 10)

30 working days from now =WORKDAY(TODAY(), 30)

5 business days from today =WORKDAY(TODAY(), 5)

To get a date N business days before today, use this formula:

WORKDAY(TODAY(), -N days)

And here are a couple of real-life formulas:

90 business days prior to today =WORKDAY(TODAY(), -90)

15 working days before today =WORKDAY(TODAY(), -15)

To make your formula more flexible, replace the hardcoded number of days with a cell reference, say B3:

N business days from today: =WORKDAY(TODAY(), B3)

N business days before today: =WORKDAY(TODAY(), -B3)

30/60/90 days from today or before today - date calculator in Excel

In a similar manner, you can add or subtract weekdays to/from a given date, and your Excel date calculator can look like this.

How to create a date calculator in Excel

Do you remember the Excel Online Date Calculator showcased in the very beginning of this tutorial? Now you know all the formulas and can easily replicate it in your worksheets. You can even craft something more elaborate because the desktop version of Excel provides far more capabilities.

To give you some ideas, let's design our Excel Date Calculator right now.

Overall, there can be 3 choices for calculating dates:

  • Based on today's date or specific date
  • From or before the specified date
  • Count all days or only working days

To provide all these options to our users, we add three Group Box controls (Developer tab > Insert > Form Controls > Group Box) and insert two radio buttons into each group box. Then, you link each group of buttons to a separate cell (right-click the button > Format Control > Control tab > Cell link), which you can hide later. In this example, the linked cells are D5, D9 and D14 (please see the screenshot below).

Optionally, you can enter the following formula in B6 to insert the current date if the Today's date button is selected. It is not actually necessary for our main date calculation formula, just a small courtesy to your users to remind them what date today is:

=IF($D$5=1, TODAY(), "")

Finally, insert the following formula in B18 that checks the value in each linked cell and calculates the date based on the user's choices:

=IF(AND($D$5=1, $D$9=1, $D$14=1), TODAY() $B$3, IF(AND($D$5=1, $D$9=1, $D$14=2), WORKDAY(TODAY(),$B$3), IF(AND($D$5=1, $D$9=2, $D$14=1), TODAY()-$B$3, IF(AND($D$5=1, $D$9=2, $D$14=2), WORKDAY(TODAY(),-$B$3), IF(AND($D$5=2, $D$9=1, $D$14=1), $B$7 $B$3, IF(AND($D$5=2, $D$9=1, $D$14=2), WORKDAY($B$7, $B$3), IF(AND($D$5=2, $D$9=2, $D$14=1), $B$7-$B$3, IF(AND($D$5=2, $D$9=2, $D$14=2), WORKDAY($B$7,-$B$3), ""))))))))

It may look like a monstrous formula at first sight, but if you break it into individual IF statements, you will easily recognize the simple date calculation formulas we've discussed in the previous examples.

And now, you select the desired options, say, 60 days from now, and get the following result:

30/60/90 days from today or before today - date calculator in Excel

To have a closer look at the formula and probably reverse-engineer it for your needs, you are welcome to download our Date Calculator for Excel.

Special tools to calculate dates based on today

If you are looking for something more professional, you can quickly calculate 90, 60, 45, 30 days from now (or whatever number of days you need) with our Excel tools.

Date and Time Wizard

If you've had a chance to pay with our Date and Time Wizard at least once, you know that it can instantaneously add or subtract days, weeks, months or years (or any combination of these units) to a certain date as well as calculate the difference between two days. But did you know it can also calculate dates based on today?

As an example, let's find out what date is 120 days from today:

  1. Enter the TODAY() formula in some cell, say B1.
  2. Select the cell where you want to output the result, B2 in our case.
  3. Click the Date & Time Wizard button on the Ablebits Tools tab.
  4. On the Add tab, specify how many days you want to add to the source date (120 days in this example).
  5. Click the Insert formula button.

That's it!

30/60/90 days from today or before today - date calculator in Excel

As shown in the screenshot above, the formula built by the wizard is different from all the formulas we've dealt with, but it works equally well :)

To get a date that occurred 120 days before today, switch to the Subtract tab, and configure the same parameters. Or, enter the number of days in another cell, and point the wizard to that cell:

30/60/90 days from today or before today - date calculator in Excel

As the result, you will get a universal formula that recalculates automatically every time you enter a new number of days in the referenced cell.

Date Picker for Excel

With our Excel Date Picker, you can not only insert valid dates in your worksheets in a click, but also calculate them!

Unlike the Date and Time Wizard, this tool inserts dates as static values, not formulas.

For example, here's how you can get a date 21 days from today:

  1. Click the Date Piker button on the Ablebits Tools tab to enable a drop-down calendar in your Excel.
  2. Right-click the cell where you'd like to insert the calculated date and choose Select Date from Calendar from the pop-up menu.
  3. The drop-down calendar will show up in your worksheet with the current date highlighted in blue, and you click the calculator button in the upper right corner:

    30/60/90 days from today or before today - date calculator in Excel

  4. On the upper pane, click the Day unit and type the number of days to add, 21 in our case. By default, the calculator performs the addition operation (please notice the plus sign in the display pane). If you'd like to subtract days from today, then click the minus sign on the lower pane.
  5. Finally, click

    30/60/90 days from today or before today - date calculator in Excel

    to show the calculated date in the calendar. Or, press the Enter key or click

    30/60/90 days from today or before today - date calculator in Excel

    to inset the date into a cell:

    30/60/90 days from today or before today - date calculator in Excel

How to highlight dates 30, 60 and 90 days from today

When calculating expiration or due dates, you may want to make the results more visual by color-coding the dates depending on the number of days prior to expiration. This can be done with Excel Conditional Formatting.

As an example, let's make 4 conditional formatting rules based on these formulas:

  • Green: more than 90 days from now =C2>TODAY() 90
  • Yellow: between 60 and 90 days from today =C2>TODAY() 60
  • Amber: between 30 and 60 days from today =C2>TODAY() 30
  • Red: less than 30 days from now =C2<today></today>

Where C2 is the topmost expiry date.

Here are the steps to create a formula-based rule:

  1. Select all the cells with the expiry dates (B2:B10 in this example).
  2. On the Home tab, in the Styles group, click Conditional Formatting > New Rule…
  3. In the New Formatting Rule dialog box, select Use a formula to determine which cells to format.
  4. In the Format values where this formula is true box, enter your formula.
  5. Click Format…, switch to the Fill tab and select the desired color.
  6. Click OK two times to close both windows.

    30/60/90 days from today or before today - date calculator in Excel

Important note! For the color codes to apply correctly, the rules should be sorted exactly in this order: green, yellow, amber, red:

30/60/90 days from today or before today - date calculator in Excel

If you don't want to bother about the rules order, use the following formulas that define each condition exactly, and arrange the rules as you please:

Green: over 90 days from now: =C2>TODAY() 90

Yellow: between 60 and 90 days from today: <code>=AND(C2>=TODAY() 60, C2

Amber: between 30 and 60 days from today: =AND(C2>=TODAY() 30, C2<today></today>

Red: less than 30 days from today: =C2<today></today>

Tip. To include or exclude the boundary values from a certain rule, use the less than (), greater than or equal to (

In a similar manner, you can highlight past dates that occurred 30, 60 or 90 days ago from today.

  • Red: more than 90 days before today: =B2<today></today>
  • Amber: between 90 and 60 days before today: <code>=AND(B2>=TODAY()-90, B2
  • Yellow: between 60 and 30 days before today: <code>=AND(B2>TODAY()-60, B2
  • Green: less than 30 days before today: =B2>TODAY()-30

30/60/90 days from today or before today - date calculator in Excel

More examples of conditional formatting for dates can be found here: How to conditionally format dates and time in Excel.

To counting days not from today but from any date, use this article: How to calculate days since or until date in Excel.

That's how you calculate dates that are 90, 60, 30 or n days from/before today in Excel. To have a close look at the formulas and conditional formatting rules discussed in this tutorial, I invite you to download our sample workbook below. Thank you for reading and hope to see you on our blog next week!

Practice workbook for download

Calculate Dates in Excel - examples (.xlsx file)

The above is the detailed content of 30/60/90 days from today or before today - date calculator in Excel. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Excel formula to find top 3, 5, 10 values in column or row Excel formula to find top 3, 5, 10 values in column or row Apr 01, 2025 am 05:09 AM

This tutorial demonstrates how to efficiently locate the top N values within a dataset and retrieve associated data using Excel formulas. Whether you need the highest, lowest, or those meeting specific criteria, this guide provides solutions. Findi

Add a dropdown list to Outlook email template Add a dropdown list to Outlook email template Apr 01, 2025 am 05:13 AM

This tutorial shows you how to add dropdown lists to your Outlook email templates, including multiple selections and database population. While Outlook doesn't directly support dropdowns, this guide provides creative workarounds. Email templates sav

How to use Flash Fill in Excel with examples How to use Flash Fill in Excel with examples Apr 05, 2025 am 09:15 AM

This tutorial provides a comprehensive guide to Excel's Flash Fill feature, a powerful tool for automating data entry tasks. It covers various aspects, from its definition and location to advanced usage and troubleshooting. Understanding Excel's Fla

Regex to extract strings in Excel (one or all matches) Regex to extract strings in Excel (one or all matches) Mar 28, 2025 pm 12:19 PM

In this tutorial, you'll learn how to use regular expressions in Excel to find and extract substrings matching a given pattern. Microsoft Excel provides a number of functions to extract text from cells. Those functions can cope with most

How to add calendar to Outlook: shared, Internet calendar, iCal file How to add calendar to Outlook: shared, Internet calendar, iCal file Apr 03, 2025 am 09:06 AM

This article explains how to access and utilize shared calendars within the Outlook desktop application, including importing iCalendar files. Previously, we covered sharing your Outlook calendar. Now, let's explore how to view calendars shared with

FV function in Excel to calculate future value FV function in Excel to calculate future value Apr 01, 2025 am 04:57 AM

This tutorial explains how to use Excel's FV function to determine the future value of investments, encompassing both regular payments and lump-sum deposits. Effective financial planning hinges on understanding investment growth, and this guide prov

MEDIAN formula in Excel - practical examples MEDIAN formula in Excel - practical examples Apr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

How to remove / split text and numbers in Excel cell How to remove / split text and numbers in Excel cell Apr 01, 2025 am 05:07 AM

This tutorial demonstrates several methods for separating text and numbers within Excel cells, utilizing both built-in functions and custom VBA functions. You'll learn how to extract numbers while removing text, isolate text while discarding numbers

See all articles