• Skip to primary navigation
  • Skip to content
  • Skip to footer

Productive Spreadsheets

Making data work for you

  • Productive Spreadsheets
  • Functions
  • Features
  • Examples
  • Analytics
Contact Us

Working with Dates in Excel Formulas

Learn how to work with dates in Excel both in basic formulas and as part of more advanced functions. This 5-minute read will get you started.

July 27, 2019 by Drew Sellers

Working with dates in Excel formulas can be very useful once you understand some basics. When it comes to working with large sets of data Excel is considered to be a very powerful tool. However, we often limit our thinking to traditional numbers. Excel treats a date just like any other number. Understanding how to format dates, do basic date calculations, and also use dates in formulas can save time.

A Date is a Simple Number in Excel

Excel stores all data in a format known as Serial Date (ddddd) or Serial Date-Time (dddd.ttttt). This number simple tracks the offset from a base date January 0, 1900. The ddddd portion of the number is the number of plus or minus days from the base date. In addition, the .ttttt is a percentage of a 24 hr day (ie. 6am = .25 or 6pm = .75). (Check out out this article at Cpearson for a deeper technical dive). Storing basic date/time info as a decimal number makes basic calculations very simple while allowing the data to be presented or reformatted easily.

Example of date as a serial number and friendly format

Formating Dates in Excel

Excel makes it very easy to quickly change the format of a date in an Excel cell.

  1. Select a single cell, row, column or also a click and drag to select the cells to change the date format
  2. There are a number of ways to access the Number format menu
    1. Home Ribbon (Toolbar) -> Number -> Use pull Down and select date
    2. Ctrl – 1 on Windows desktop
    3. Right-click – > Number Format
  3. Select the date format that works for this case
    1. Category -> Date
    2. Sample – shows what the date format will look like
    3. Type – Different date options
Date format Menu in Excel

Dates in Excel Formulas

Working with dates in Excel formulas is as easy as working with any other sets of data once you know what to expect.

Subtract Two Dates in Excel

Excel allows you to subtract two dates from each other when you want to know the number of days between. For instance, project plans of Gantt charts might use this approach. In order to determine task duration subtract the start from the end date. A simple subtraction formula will work (=A1-B1).

Subtracting a Date and a number in Excel

Excel easily supports subtracting a number from a date. Finding the date “X” number of days ago maybe the goal. For instance, calculating lead times for inventory might be needed. If the materials for a job have a 90 day lead time and the jobs need to start on May 23, I need to place the order (=Date-90).

Adding Dates in Excel

When working with adding dates the most common case is adding a number of days to a specific date. For example, when would we be done if a project started on June 3 and it takes 15 days complete.

Interactive Demo

Double click on the cells and change the data to see how it works.

PRO-TIP – When working with basic date math make sure to format the formula cell for the type of number you are looking for. If the goals is to see a number of days use a General or Numeric format. However, if the goal is to see a specific date format the formula as a date field.

Summary

In conclusion, dates are treated just like any other numbers in Excel. Understanding how dates are stored and formatted in Excel makes it easy to find the answers you are looking for.

Category iconFeatures Tag iconExcel,  Interactive

Footer

Categories

Features (1) Functions (2)

Copyright © 2025 Productive Approach. All rights reserved. Return to top