- How does Excel store date values?
- How does Excel display date values?
- How do I change the date format?
- How do I enter dates into Excel?
How does Excel store date values?
Excel internally saves dates as sequential serial numbers that can be utilized in calculations. In Excel's date system, the first day is January 1, 1900, which corresponds to the serial number 1. Because it is 39,447 days after January 1, 1900, January 1, 2008 corresponds to the serial number 39448. When you put in a date into an Excel cell, it is converted to a serial number that Excel may use for calculations immediately.
This system has various benefits:
- Speed: Calculations and comparisons with numbers are substantially faster than with text strings.
- Sorting and filtering: Dates stored as serial numbers can easily be ordered chronologically, allowing for better organization and filtering.
- Compatibility: Serial numbers ensure that data is handled consistently across systems and regions.
How does Excel display date values?
The date text displayed (for example, "12/6/2023") is determined by the serial number underneath. That is to say, it is the outcome of formatting the underlying serial number.
The user's regional choices determine the actual applied date formats. This implies that date formats used in different countries may differ from one another. The following table shows some examples.
Region | Short Date | Medium Date | Long Date |
United States (US) | mm/dd/yyyy (e.g., 12/6/2023) | mmm dd, yyyy (e.g., Dec 6, 2023) | mmmm dd, yyyy (e.g., December 6, 2023) |
United Kingdom (UK) | dd/mm/yyyy | d mmm yyyy | dd mmmm yyyy |
France | dd/mm/yyyy | d mmm yyyy | dd mmmm yyyy |
Germany | dd.mm.yyyy | d. mmm yyyy | dd. mmmm yyyy |
Japan | yyyy/mm/dd | yyyy年m月d日 | yyyy年m月d日 |
China | yyyy-mm-dd | yyyy年m月d日 | yyyy年m月d日 |
Understanding the date system you are using is crucial, particularly when working with dates from various locations and sources.
How do I change the date format?
The default date format in Excel is determined by the geographical settings of the machine. To alter it on Windows 11:
- Clicking the button. Select .
- Select .
- Select .
- In the section, choose the option for , or select a custom .
The
dialog box in Excel can also be used to manually alter the format that is applied to a date cell. The steps you need to take are as follows:- Select the cell or range of cells that you want to format.
- Right-click the cell, and then select from the context menu.
- Choose the tab in the dialog box.
- Choose from the list.
- Choose the desired date format from the list.
- To apply the changes, click .
For example, pick the "03/14/2012" format under the Date category if you want the date to appear as "MM/DD/YYYY." To see the date displayed as "Monday, March 14, 2012," choose the Custom category and fill in the Type field with "dddd, mmmm dd, yyyy".
How do I enter dates into Excel?
The most common way to enter dates into Excel is to enter them manually.
- Select the cell where you want to enter the date.
- Enter the date in the appropriate format, like "DD/MM/YYYY" or "MM/DD/YYYY.".
- Press .
- You can also enter the current date in a cell by using the keyboard shortcut "Ctrl + ;". Use the keyboard shortcut "Ctrl + Shift + ;" to insert the current date and time.
Alternatively, you can use the
feature to enter the date. Here are the steps:- Select the cell where you want to enter the date.
- Click on the tab on the ribbon.
- Click on the button.
- In the dialog box, type "TODAY" in the field.
- Select the function from the list of functions.
- Click on .
Our date picker add-in makes entering dates easier.
When you click a date cell, the date picker shows a little icon button. You can then click the icon to open a calendar and click a date to enter it into the cell. This makes entering dates a lot easier and avoids typographical errors and format mistakes. See the tutorial movie to find out how it works.