How to calculate days since or until date in Excel

Are you stuck with calculating how many days there are since a certain date or until date? This tutorial will teach you an easy way to add and subtract days from date in Excel. With our formulas you can quickly calculate 90 days from date, 45 days before date, and count whatever number of days you need.

Calculating days from date sounds like an easy task. However, this generic phrase can imply many different things. You may want to find a given number of days after date. Or you may wish to get the number of days from a certain date until today. Or you may be looking to count days from date to date. In this tutorial, you will find solutions to all these and a lot more tasks.

Days from/before date calculator

Want to find a date that occurs 60 days from a specific date or determine 90 days before date? Supply your date and the number of days in the corresponding cells, and you will get the results in a moment:


How many days since / until date calculator

With this calculator, you can find how many days are left to a certain date, for example your birthday, or how many days have passed since your birthday:

Tip. To find out how many days there are from date to date, use the Days Between Dates Calculator.

How to calculate days from date in Excel

To find a date that is N days from a certain date, just add the required number of days to your date:

Date + N days

The key point is to supply the date in the format that Excel understands. I'd suggest using the default date format or convert a text-date to a serial number representing the date with DATEVALUE or explicitly specify year, month and day with the DATE function.

For example, here's how you can add days to April 1, 2018:

90 days from date

="4/1/2018"+90

60 days from date

="1-Apr-2018"+60

45 days from date

=DATEVALUE("1-Apr-2018")+45

30 days from date

=DATE(2018,4,1)+30

To get a more universal days from date formula, enter both values (source date and the numbers of days) in separate cells and reference those cells. With the target date in B3 and the number of days in B4, the formula is as simple as adding up two cells:

=B3+B4

As plain as it could possibly be, our formula works just perfectly in Excel:
Calculating days from date in Excel

With this approach, you can easily calculate the expiry or dues dates for a whole column. As an example, let's find 180 days from date.

Supposing you have a list of subscriptions that expire in 180 days after the purchase date . With the order date in B2, you enter the following formula in, say C2, and then copy the formula to the entire column by double-clicking the fill handle:

=B2+180

The relative reference (B2) forces the formula to change based on a relative position of each row:
Calculating 180 days from date

You can even calculate a few intermediate dates for each subscription, all with a single formula! For this, insert a couple of new columns and indicate when each of the dates is due (please see the screenshot below):

  • 1st reminder: 90 days from purchase date (C2)
  • 2nd reminder: 120 days from purchase date (D2)
  • Expiration: 180 days from purchase date (E2)

Write the formula for the first cell that calculates the 1st reminder date based on the order date in B3 and the number of days in C2:

=$B3+C$2

Please notice that we fix the column coordinate of the first reference and the row coordinate of the second refence with the $ sign so that the formula copies correctly to all other cells. Now, drag the formula rightwards and downwards until the last cells with data, and make sure it calculates the due dates in each column appropriately (please notice that the second reference changes for each column while the first reference is locked to column B):
Find 90, 120 and 180 days from date with one formula

Note. If the results of your calculations are displayed as numbers, apply the Date format to the formula cells to have them displayed as dates.

How to calculate days before date in Excel

To find a date that is N days before a certain date, perform the arithmetic operation of subtraction instead of addition:

Date - N days

As with adding days, it is important that you enter the date in the format understandable to Excel. For example, that's how you can subtract days from a given date, say from April 1, 2018:

90 days before date

="4/1/2018"-90

60 days before date

="1-Apr-2018"-60

45 days before date

=DATE(2018,4,1)-45

Naturally, you can enter both values in individual cells, say date in B1 and the number of days in B2, and subtract the "days" cell from the "date" cell:

=B1-B2
Calculating days before date in Excel

How to count days until date

To calculate the number of days before a certain date, subtract today's date from that date. And to supply the current date that updates automatically, you use the TODAY function:

Date - TODAY()

For example, to find how many days are left until January 31, 2018, use this formula:

="12/31/2018"-TODAY()

Or, you can enter the date in some cell (B2) and subtract today's date from that cell:

=B2-TODAY()

In a similar manner, you can find difference between two dates, simply by subtracting one date from another.

You can even concatenate the returned number with some text to create a nice-looking countdown in your Excel. For example:

="Just "& A4-TODAY() &" days left until Christmas!"
Counting the number of days until a given date

Note. If your count days formula shows a date, set the General format to the cell to display the result as a number.

How to count days since date

To calculate how many days have passed since a certain date, you do the opposite: subtract the date from today:

TODAY() - Date

As an example, let's find the number of days since your last birthday. For this, enter your date in A4, and subtract the current date from it:
=A4-TODAY()

Optionally, add some text explaining what that number is:

=TODAY()-A4 &" days since my birthday"
Counting the number of days since date

How to calculate working days from date

Microsoft Excel provides 4 different functions to calculate weekdays. The detailed explanation of each function can be found here: How to calculate weekdays in Excel. For now, let's just focus on practical uses.

Calculate N business days from/before date

To return a date that is a given number of working days ahead of or prior to the start date that you specify, use the WORKDAY function.

Here are a couple of formula examples to get a date that occurs exactly N business days from a certain date:

30 business days from April 1, 2018

=WORKDAY("1-Apr-2018", 30)

100 working days from the date in A1:

=WORKDAY(A1, 100)

To find a date that occurred a specified number of business days before a given date, supply the days as a negative number (with the minus sign). For example:

120 business days before April 1, 2018

=WORKDAY("1-Apr-2018", -120)

90 working days before the date in A1:

=WORKDAY(A1, -90)

Or, you can enter both values in predefined cells, say B1 and B2, and your business days calculator can look something similar to this:

Workdays from a given date:

=WORKDAY(B1, B2)

Workdays before a given date:

=WORKDAY(B1, -B2)
Calculating N business days before or after a given date

Tip. The WORKDAY function calculates days based on the standard working calendar, with Saturday and Sunday as weekend days. If your working calendar is different, then use the WORKDAY.INTL function that allows specifying custom weekend days.

Count business days since/until date

To return the number of days between two dates excluding Saturdays and Sundays, use the NETWORKDAYS function.

To find out how many working days are left until a certain date, supply the TODAY() function in the first argument (start_date) and your date in the second argument (end_date).

For example, to get the number of days until the date in A4, use this formula:

=NETWORKDAYS(TODAY(), A4)

Of course, you are free to concatenate the returned count with your own message like we did in the above examples.

For instance, let's see how many business days are left until the end of 2018. For this, enter 31-Dec-2018 in A4 as a date, not text, and use the following formula to get the number of working days until this date:

="Only "&NETWORKDAYS(TODAY(), A4)&" work days until the end of the year!"

Wow, only 179 working days are left! Not as many as I thought :)
Count the number of business days left until a certain date.

To get the number of business days since a given date, reverse the order of arguments - enter your date in the first argument as the start date and TODAY() in the second argument as the end date:

=NETWORKDAYS(A4, TODAY())

Optionally, display some explanatory text like this:

=NETWORKDAYS(A4, TODAY())&" work days since the beginning of the year"

Only 83 working days… I thought I had worked at least 100 days this year already!
Get the number of business days since a certain date.

Tip. To specify your own weekends other than Saturday and Sunday, use the NETWORKDAYS.INTL function.

Date and Time Wizard - quick way to calculate days in Excel

This wizard is kind of Swiss army knife for Excel date calculations, it can compute almost anything! You just select the cell where you want to output the result, click the Date & Time Wizard button on the Ablebits Tools tab and specify how many days, weeks, months or years (or any combination of these units) you want to add to or subtract from the source date.

As an example, let's find out what date is 120 days< from date in B2:
Finding a date that is 120 days from date

Click the Insert formula button to enter the formula in the selected cell, and then copy it to as many cells as you need:
The formula to find a date that is 120 days from a given date

As you may have noticed, the formula built by the wizard is different from the ones we've used in the previous examples. It's because the wizard is designed to calculate all possible units, not only days.

To get a date that occurred N days before a certain date, switch to the Subtract tab, input the source date in the corresponding box, and specify how many days you want to subtract from it. Or, enter both values in separate cells, and get a more flexible formula that recalculates with every change you make to the original data:
Calculating N days before a certain date

Date Picker - calculate days in drop-down calendar

There exist a great number of third-party drop-down calendars for Excel, both free and paid. All of them can insert a date into a cell with a click. But how many Excel calendars can also calculate dates? Our Date Picker can!

You simply select a date in the calendar and click the Date Calculator icon or press the F4 key:
Date Calculator for Excel

Then, click the Day unit on the preview pane and type the number of days to add or subtract (you choose which operation to perform by clicking the plus or minus sign on the input pane).

Finally, press the Enter key to insert the calculated date into the currently selected cell or press F6 to display the date in the calendar. Alternatively, click one of the buttons shown in the image below. In this example, we are calculating a date that is 60 days from April 1, 2018:
Show the calculated date in the calendar or insert into a cell.

That's how you find days from or before a certain date in Excel. I have a closer look the formulas discussed in this tutorial, you are welcome to download our sample workbook to Calculate Days from Date. I thank you for reading and hope to see you on our blog next week!

75 comments

  1. Hi,
    I want to calculate what date would it be after 30,60,90,120... days but, if the date comes as a weekend (Sat or Sun), I want the date to get pushed to the nearest weekdays. Is that possible?

  2. So i'm trying to create a formula that calculates a 14 day break if it falls within a certain date range. For example a students class starts 12/5 but due to the Christmas holiday break, there is a 14 day break before the class ends 1/22/24. I've tried a IF THEN statement where IF the end date is before 12/19/23, then no change needs to happen and if the end date falls after 12/19/23, then add 14 days. I can't seem to get my formula right.

  3. Hello,

    I want column G to advise how many days remaining from todays calendar date not a date on the spreadsheet.

    So column F has the due date and i want the days remining to be in column G.

    Also, in column M i have a status column which is manually changed from pending to complete when a task is completed. can the days remaining not go into minus once status is changed to completed ?

    Thank you.

  4. I want to create a formula for my column that can calculate number of days from a date to another date, not in between.
    For example no. Of days from 25/09/2021 and 24/10/2021 is 30 but in between comes 29. How to calculate no. Of days from a to b period?

    • Have you tried the ways described in this blog post? It has been written many times on this blog that a date such as 24/10/2021 means 24/10/2021 00:00:00. Therefore, 29 days is the correct answer.

  5. I need to calculate how many days since a date and I have used ,today()- a2 (where the date is recorded in the spreadsheet), however I need this number to stop going up once another cell is marked as complete, is that possible?

    • Hi! I’m not sure I got you right since the description you provided is not entirely clear. However, it seems to me that the formula for cell C2 will work for you:

      =IF(B2="Complete",MAX($C$1:C2),TODAY()-A2)

  6. Dear sir,

    I've had an inquiry, so I'm attaching the date below. I need the day of the month. You can see the total number of days from check-in to check-out.

    SL NO Name check in Check out DAYS DAYS Jan-23 Feb-23 Mar-23 Apr-23 May-23 Jun-23 Jul-23 Aug-23 Sep-23 Oct-23 Nov-23 Dec-23
    1 LABOUR 1 4/10/2023 5/16/2023 1M6d 36
    2 LABOUR 2 4/10/2023 5/16/2023 1M6d 36
    3 LABOUR 3 3/30/2023 5/16/2023 1M16d 47
    4 LABOUR 4 3/30/2023 5/16/2023 1M16d 47

  7. Hi
    I need once formula for accounting related.

    We are releasing the payments in multiple times against the one Invoices - I need difference between invoice date to payment date.

    One invoices to multiple payments gap dates

  8. I need to track 30 days +/- 14 days from X date, and then an additional 3 months from that day +/- 30 days. What is the best way to do this?

  9. i want to create a formula for days since an injury on a work injury report. i have a list of injuries by date, i want the formula to read the last date and be able to have a days since incident.

      • Hi there I have a formula in BK+42 which gives me 42 days after a certain date. But when I drag the formula down to populate in all cells in that column it also adds a random date where no date has been enetered into colum B yet? How to disable this

  10. i want to calculate number of days left until zero day. for instance employee is given 20 days leave that number should be minus today(everyday) until zero day when the leave expires. please help me out.

  11. Hello,

    I am looking for formula that will calculate days from and to a date from an inputted day, August 31st. I would have date on the line and it would need to calculate the days since the fixed date if its past August 31st and calculate from August 31st until that line item if it is in the future. For example: Line 7 has April 31st - the calculation should say 120 days - If line 8 has November 31st it would say 240 days. Is that possible?

  12. Hello
    I am trying to create a function that I would add the start date in a cell in column B for example. In column D I will have Calendar Days, and in column E I will have workdays.
    I would like a formulae to return a date value in column C adding to the start date (in column B) either the number figure in column D or the number figure in column E depending on which cell is populated.
    It will be either calendar days or work days number to take into account.
    Cheers

    • Hello!
      If the days are in either column D or column E, then you can simply sum the cells.

      =B1+E1+D1

      Or use the IF function.

      =IF(E1<>"",B1+E1,B1+D1)

      I hope my advice will help you solve your task.

  13. I have a question, how can I calculate the formula with the following details in one report

    I need to have the number of days delayed from the planned end date to actual end date
    some of the cell info doesn't have any end date yet since is still in progress.

    example: Planned end date Jun 13, 2022 versus Actual End date June 14, 2022
    Planned End date June 14, 2022 versus task is still in progress

    can this be combine in one formula?

  14. how to calculate (today date -28 day) which date to be .........

  15. I have a Start and end date. I got the formula to get the no. of days until today however how do I end this days count when I reach the end date?
    Eg. Start dtd 1st April 22 - End dtd 31st July 22.
    From 1st Apr until today is 23 days. Every day the days gets updated until the end date.

      • Thank you. Sorry I think I was not very clear with my question. Let me be a bit more elaborate: In the below example Campaign started on 1st Apr and will end on 30 June. Campaign to run for 91 days. As of today 28 campaign days completed which is the last column (I have used the formula to to automatically counts the days). I want to know the formula to use in the last column wherein the day it reaches 91 days the counting should stop and stay at 91 and not get updated to 92 the next day.

        Start Date End Date Total Campaign days Completed Campaign Days as of today
        1 April 2022 30 June 2022 91 28

          • This one did work. Thanks a lot. God Bless

  16. I have tried almost every formula and not 1 has worked. I am simply trying to have a date in cell A1 and in cell A2 have it print the total days since that date. So for example if the date in cell A1 was 01/01/2020, and Todays date is 01/02/2020. A2 would print "1"
    I keep getting a return of a random date in the year 1900 or ###### with every formula you provided.

  17. Hi,

    Is there a formula on counting the arrear days from the last payment to today's date?
    For example I have a lease schedule and the customer missed a payment multiple times.
    What will be the formula if the transaction amount is zero, count the days from the last payment to current date? Thanks!

    • Hi!
      Have you tried the ways described in this blog post? If they don’t work for you, then please describe your task in detail.

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)