ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel 101 > How does Excel Store Dates and Times?

How does Excel Store Dates and Times?

How does Excel Store Dates and Times
Table of contents :
  • How does Excel Store Dates?
  • How does Excel Store Times?
  • How does Excel Store Dates and Times?

How does Excel Store Dates and Times

How does Excel Store Dates?

Pay attention to the animation below. There are ten dates in column A, all copied and placed in column B, then formatted to Number – General.

The result is as shown below

How does Excel Store Dates

Excel stores date as integer numbers, known as the date serial number. 1 represents January 1, 1900, 2 represents January 2, 1900, and so on, maximum of 2,958,465 representing December 31, 9999.

The date before January 1, 1900, and after December 31, 9999 is not recognized as the date by Excel.

***Excel Big Secret ***

Pay attention to February 29, 1900, in the picture above, Excel treats 1900 to be a leap year, but it’s not.

Why does this happen? Does Excel has a “bug”? YES, this a bug, but not Excel’s bug. This bug “owned” by Lotus 123, a popular spreadsheet program at the time. Excel keeps this bug to make Excel compatible with the popular spreadsheet program at that time.

How does Excel Store Times?

What about the time? Does Excel store it as an integer number too? See the image below for the explanation.

How does Excel Store Times

Excel stores time in the decimal number between 0 and 1. Integer number for the date and decimal number for the time.

How are the decimal numbers generated? If 1 represents one day then

1 Hour =1/24 = 0.041667
1 Minute =1/24/60 = 0.000694
1 Second =1/24/60/60 = 0.0000115741

 

1 Minute 45 Seconds = (1/24/60) + (45/24/60/60)
= 0.0012152778

 

1 Hour 30 Minutes 30 Seconds = (1/24) + (30/24/60) + (30/24/60/60)
= 0.0628472222

How does Excel Store Dates and Times?

If you use the date and time simultaneously, how does Excel store the data?

How does Excel Store Dates and Times

The result is the integer number represents the date, and decimal numbers represent the time.

Share
Tweet
Google+
Email
Next Article

Related Articles

Paste Special Excel
What is Paste Special Paste special is a paste but …

Paste Special Excel

Flash Fill Excel
What is Flash Fill Excel Flash Fill automatically fills your …

Flash Fill Excel

Tags:How does Excel Store Dates How does Excel Store Dates And Times How does Excel Store Times

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh