Skip to main content
  • Login
Cart
Exceljet logo Exceljet
  • Training
  • Videos
  • Functions
  • Formulas
  • Shortcuts
  • Articles
Cart
  • Login
  • Training
  • Videos
  • Functions
  • Formulas
  • Shortcuts
  • Articles
  • Login

You are here

Home › Videos › How Excel stores dates and times

How Excel stores dates and times

Transcript 

To understand how Excel formats dates and times we need to look at how Excel stores dates and times. In Excel, both dates and times are just numbers.

Let's take a look.

Here we have a worksheet with three tables: one for dates, one for times, and one for dates with times. Let's look at the dates first.

In Excel, all dates are numbers, and the first day in Excel's date system is January 1, 1900.

To illustrate, let's use a formula to set column C equal to column B.

Now let's format column C with the General format so that we can see the numbers without date formatting.

We can see that January 1, 1900 really is equal to the number 1—the first date in Excel's date system. And January 1, 2002 is equal to the number 37,257. That is, January 1, 2002 is 37,257 days after January 1, 1900.

Dates in the future are handled in the same way. April 15, 2020 is equal to the number 43,936.

Now let's look at time. Since one day is equal to the number 1, one hour is equal to 1 divided by 24 (1/24).

Let's again look at these values in General format using column F. 

In the same way that dates are integers, we can see that times are actually decimal numbers that increase throughout the day. Noon is .5, and 6 PM is .75—three quarters of the way through the day.

Now let's look at the last table, Date and Time.

As before, we'll set up column C to look at the values in column B without date formatting.

We see that dates with times are just a date value added to a time value. So, noon on January 1, 2002 is equal 37,257 plus .5.

Whenever you're working with a date or time, keep in mind that underneath is just a number that you can look at anytime by applying the General format.
 

Master Excel with practice. Download this worksheet (and dozens more) in our Core Excel course. Learn by doing.

Dave Bruns Profile Picture

Author

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.

Microsoft Most Valuable Professional Award  

Exceljet Training

  • Excel 101
  • Excel Fundamentals
  • Conditional Formatting
  • Essential Formulas
  • Advanced Formulas
  • Pivot Tables
  • Excel Tables
  • Excel Shortcuts
  • Excel Charts
  • Course Bundles
Just wanted to say "Thank you" and I feel lucky I found your website! I work with contracts and your link lead me to a concise answer. No other link came close.
Karen
More Testimonials

Get Training

Quick, clean, and to the point training

Learn Excel with high quality video training. Our videos are quick, clean, and to the point, so you can learn Excel in less time, and easily review key topics when needed. Each video comes with its own practice worksheet.

View Paid Training & Bundles
Excel foundational video course
Excel Pivot Table video training course
Excel formulas and functions video training course
Excel Charts video training course
Video training for Excel Tables
Dynamic Array Formulas
Exceljet logo Exceljet
Quick, clean, and to the point

Resources

  • Training
  • Videos
  • Functions
  • Formulas
  • Shortcuts
  • Articles

About Us

  • About
  • Testimonials
  • Topics
  • Contact
  • Donate

Newsletter Sign-up

Work faster in Excel. Join more than 100,000 people who get weekly tips from us.
© 2012-2025 Exceljet. Terms of use
  • Visit our Twitter page