How to Insert Date in Excel?
In Excel, every valid date is stored as a form of the number. One important thing to be aware of in Excel is that we have a cut-off date of “31-Dec-1899”. Therefore, every date we insert in Excel will be counted from “01-Jan-1900 (including this date)” and stored as a number.
Examples
Here, we will learn how to insert a date in Excel with the help of the examples below.
Example #1 – Date Stored as a Number
In the Excel sheet, let us take 50, 100, and today’s date, 30/01/2019.
Now, we can observe how data is stored in Excel when we change the formatting of the above data to date and accounting format.
50 – Change format to short date
100 – Change format to short date
30/01/2019 – Change format to accounting as it already in date format
If we observe the number 50 has been changed to date. It displayed exactly 50 days from 01/01/1900 (including this date in the count). Similarly, for the number 100, the date indicated in the exact count from 01/01/1900. And the third observation, which is already in date format and we changed to number format, displays “43,495.” So, today, 30/01/2019 is 43,495 days away from the cut-off date.
Example #2 – Inserting Specific Date in Excel
To insert a specific valid date in Excel, we must use DATE()Use DATE()The date function in excel is a date and time function representing the number provided as arguments in a date and time code. The result displayed is in date format, but the arguments are supplied as integers.read more.
In the above function, we can observe that DATE asks to provide “year,” “month,” and “day” values. As we give the details of it, then this displays the date in default format as below:
In the above example, we had given the “year” as 1992, “month” as 10, and “day” as 30. But, the output is displayed as per the default format.
Example #3 – Changing the Inserted Date Format in Excel
As seen in our earlier examples, we have displayed the date in a pre-defined format. To change the date format, we should go to “Format Cells.” Let us see how we can do it:
To access the “Format Cells,” we should right-click on the “Date” cell. Then, the above list of operations will pop out. Here, we must select the “Format Cells,” which may take us to the “Format Cells” window.
We got the list in a different format for the date as above. So, let us select one of the formats and see how the format got changed as below.
It is an important formatting feature that helps select dates as per their required format for different organizations.
Example #4 – Insert List of Sequential Dates in Excel?
If we want to list out of the sequential dates, we can select the start date, dragging it down until we reach the end date as per your requirement.
We must insert the date manually (do not use DATE()).
And drag it down as below.
Here we got the list of dates in a sequence from the starting date.
Example #5 – Insert Dates with NOW() and TODAY() Excel Function
To get the present-day date, we can use TODAY()Use TODAY()Today function is a date and time function that is used to find out the current system date and time in excel. This function does not take any arguments and auto-updates anytime the worksheet is reopened. This function just reflects the current system date, not the time.read more and get the present day and the current time. Then, we should go with the NOW() FunctionNOW() FunctionIn an excel worksheet, the NOW function is used to display the current system date and time. The syntax for using this function is quite simple =NOW ().read more. Let us see the example below:
We also got a keyboard shortcut instead of the formulas.
We should use the “Alt +” shortcut instead of the TODAY() Excel function to get the present date.
We should use the “Alt + Shift + ” shortcut instead of the NOW() Excel function to get the present date along with the time.
Example #6 – How to Extract Selective Information from the Inserted Excel Date Values.
There are three important functions in Excel that help us extract the specific information from the date. They are:
- DAY()DAY()In Excel, the DAY function calculates the day value from a given date. This function accepts a date as an argument and returns a two-digit numeric value as an integer value representing the given date’s day. The formula to use this function is =Edate(serial number).read moreMONTH()MONTH()The Month Function is a date function that determines the month for a given date in date format. It takes an argument in a date format and displays the result in integer format.read moreYEAR()YEAR()The year function in excel is a date function to calculate the year from a given date. This function takes a serial number as an argument and returns a four-digit numeric value representing the year of the given date, formula = year (serial number)read more
Example #7 – Using TEXT() for Inserting Dates in Excel
TEXT() is one of the very important formulas for the presentation of data into a certain desired custom format.
Let us assume the dates as per the above example. We can get the day, month, year, and per the formats mentioned in the third column.
Using the TEXT() as above, we can derive as per the format required.
We can also use the TEXT() in changing the date format as per our requirement. We can avoid going to “Format Cells” and changing the format. It will also reduce the time consumption when changing the format.
Let us see how we can change the format using the TEXT().
TEXT() will also help us in concatenating with a dateConcatenating With A DateTo concatenate a date with other values in Excel, we can use the & operator or the built-in concatenate function. For example, if we use =“ABC”&NOW(), the output will be ABC14/09/2019.read more.
However, when we try to concatenate without using the TEXT() then, it may display the number instead of the date as below:
How to Change the Format of the Inserted Date in Excel?
If we observe from the above example, the date is in the form of MM/DD/YYYY. Suppose we want to change the format, then we can do it as per below:
We should go to the “Control Panel” and select ” Ease of Access.” Then, we can visualize the option of the clock, language, and region.
Click on the above option. It will pop out to other windows where we can get a choice of the region and go on that.
Here, we can select the date format as per our requirement, short date or long date. It will be the default setting of the date once we apply it. If we want to go to the previous format, we can reset it on the window.
Things to Remember
Inserting a valid date in excel should always be stored as a number. We can verify this condition by using ISNUMBER()ISNUMBER()ISNUMBER function in excel is an information function that checks if the referred cell value is numeric or non-numeric.read more.
Let us take the date in two different formats, as shown above. Inserting a valid date in Excel should always be stored in the number format, so we need to verify the same.
As we check for the number using the ISNUMBER()ISNUMBER()ISNUMBER function in excel is an information function that checks if the referred cell value is numeric or non-numeric.read more, function, the date which is stored in the form of the number and a valid date will be “TRUE” or else “FALSE.”
In our example above :
- 30/01/2019 – This is TRUE as it is stored in the form of a number, and this date is valid30.01.2019 – This is FALSE, as it is not stored in the form of the number, and it is not valid.
Recommended Articles
This article is a guide to Insert Date in Excel. Here, we discuss how to insert dates in excel along with the top 7 examples using a combination of the DATE(), NOW(), TODAY(), and TEXT() functions. You may also look at these useful functions in Excel: –
- VBA DATEVALUE FunctionEOMONTH Function in ExcelDate to Text in ExcelEDATE Function in Excel