How to Insert Current Date in Excel (4 Suitable Examples)

When making an assignment, report, or any other business-related document, it’s pretty common to add the current date. Sometimes we need to insert it several times and then it’s bothersome or time-consuming to insert the current date manually every time.

You will be glad to know that Excel offers some easy ways by which we can easily and quickly insert the current date for a short dataset or long dataset. In this article, we’ll learn how to insert the current date in Excel with 4 suitable examples.

1-Overview of how to insert current Date in Excel


How to Insert Current Date in Excel: 4 Suitable Examples

Now in this section, we’ll learn 4 suitable examples of how to insert current the date in Excel with easy steps and sharp illustrations.

We have used the date format- MM/DD/YYYY.

1. Insert Current Static Date Using Keyboard Shortcut in Excel

When you want to insert the current date in a few places of your dataset then using a shortcut is the best option for you.

  • Select a cell where you want to insert the current date and then just press CTRL+ ; (semi-colon), soon after you will get the current date on that cell.
  • Repeat the same process to insert the current date on the other cells.

2-Inserting current date using shortcut keys

Note: If you recalculate your workbook or reopen it on another day then it won’t update the date automatically.

Read More: How to Insert Date in Excel Formula


2. Use the Excel Function to Insert the Current Date (If the Worksheet Needs to Be Updated/Recalculated/Reopened)

When you want to update the current date while recalculating or reopening the workbook on another day then using the TODAY or NOW functions are very effective. Also, it’s feasible for a large dataset as we can use the Fill Handle tool.

2.1 Apply TODAY Function to Insert Current Date

First, we’ll learn to insert the current date using the TODAY function and some practical examples related to it. The TODAY function has the simplest syntax conceivable, with no arguments at all.

  • Enter the following formula in a Cell E5-
=TODAY()
  • Then use the Fill Handle tool to copy it for the other cells.

3-Using TODAY function to insert current date

Now let’s see some examples related to the TODAY function for inserting the current date.


Example 1. Add or Subtract Days from the Current Date

Suppose you know the before or after delivery days of some products from the current date then by adding or subtracting the days with the TODAY function you can get the delivery date quickly.

  • Insert the following formula in Cell F5 and use the Fill Handle tool-
=TODAY()+E5

4-Adding or Subtracting Days from the Current Date with TODAY function


Example 2. Calculate Months or Years from the Current Date

If we use a nested formula using the DATEDIF and TODAY functions then we can get the number of months or years between a certain date and the current date. In the below dataset, we have some projects’ start dates, we’ll calculate the number of months or years till the current date.

Calculating Months:

  • In Cell E5, write the following formula and then use the Fill Handle tool to get the output for the whole column-
=DATEDIF(D5,TODAY(),"m")

5-Combining DATEDIF and TODAY functions to calculate months from current date

  • Here, the TODAY function will return the current date. And the DATEDIF function will calculate the month numbers between the given date and the current date. “M” is used for the month.

Calculating Years:

  • To get the number of years, use the following formula-
=DATEDIF(D5,TODAY(),"y")

6-Combining DATEDIF and TODAY functions to calculate years from current date

  • This formula works the same as the previous formula. “y” is used for the year.

Example 3. Get Age from Current Date

By using the TODAY function we can calculate the age from the current date. For that, we’ll need the help of the YEAR function here. Here, we have some employees’ years of birth and now we’ll calculate their ages. My current date is 4/5/2023.

  • Type the below formula in Cell E5 and use the Fill Handle tool-
=YEAR(TODAY())-D5

7-Combining YEAR and TODAY functions to get age from current date

  • The TODAY function will return the current date. Then the YEAR function will return the year number from the current date and then the birth year will be subtracted from that.

Example 4. Calculate the Closest Date to the Current Date

In this example, we’ll determine the closest past or future date to our current date by using the MAX, MIN, IF, and TODAY functions. My current date is 4/5/2023.

Closest Past Date:

  • Insert the following formula in Cell D15
=MAX(IF(D5:D13 < TODAY(),D5:D13))

8-Combining MAX, IF and TODAY functions to calculate closest past date to current date

Formula Breakdown

  • TODAY()

The TODAY function will return the current date.

  • IF(D5:D13 < TODAY(),D5:D13)

Next, the IF function will return the dates which are less than the current date.

  • MAX(IF(D5:D13 < TODAY(),D5:D13))

Finally, the MAX function will return the nearest past date.

Closest Future Date:

  • Use the following formula to get the closest future date from the current date-
=MIN(IF(D5:D13 > TODAY(), D5:D13))

9-Combining MIN, IF and TODAY functions to calculate closest future date to current date

Formula Breakdown

  • TODAY()

The TODAY function will return the current date.

  • IF(D5:D13 < TODAY(),D5:D13)

Later, the IF function will return the dates which are greater than the current date.

  • MAX(IF(D5:D13 < TODAY(),D5:D13))

Finally, the MIN function will return the nearest future date.


Example 4. Get a Date Closest to Today

Now here, we have some random dates that are before or after from current date, we’ll find the closest date from those dates. so we’ll need to apply the INDEX, MATCH, MIN, and ABS functions with the TODAY function. My current date is 4/5/2023.

  • Apply the following formula in Cell D15
=INDEX(D5:D13,MATCH(MIN(ABS(D5:D13-TODAY())),ABS(D5:D13-TODAY()),0))

10-Joining INDEX, MATCH, MIN, ABS and TODAY functions to get the closest date to today

Formula Breakdown

  • ABS(D5:D13-TODAY())

The TODAY function will return the current date. Then the date will be subtracted from every date and returned as an array. Next, the ABS function will return the absolute value ignoring the negative sign.

  • MIN(ABS(D5:D13-TODAY()))

Then the MIN function will return the minimum value from the array that will be the lookup value for the MATCH function.

  • MATCH(MIN(ABS(D5:D13-TODAY())),ABS(D5:D13-TODAY()),0)

Later, the MATCH function will return the index row number based on the selected range from the array.

  • INDEX(D5:D13,MATCH(MIN(ABS(D5:D13-TODAY())),ABS(D5:D13-TODAY()),0))

Finally, the INDEX function will return the corresponding value according to the index number.


2.2 Use the NOW Function to Add Current Date in Excel

Excel has another function that can also return the current date, additionally, it also returns the current time with the date. The function is the NOW function. It has no arguments.

  • Use the following formula in Cell E5 and then apply the Short Date format to display the date only-
=NOW()

11-Using NOW function to add current date in Excel

Read More: How to Insert Dates in Excel Automatically


3. Apply Power Query to Insert Current Date

When we have a very large dataset then it’s quite difficult to use shortcuts or formulas to insert the current date in a long column. In that case, Excel Power Query is the best tool to use. Now let’s learn how to insert the current date in Excel using Power Query.

  • First, select the dataset and click as follows: Data > From Table/Range.

12-Selecting From Table/Range option from Data menu

  • After opening the Power Query window, click: Add Column > Custom Column.

13-Inserting custom column in Power Query

  • Give a column name and insert the custom column formula:
=DateTime.LoaclNow()

14-inserting custom column name and formula

  • Now see, a column has been added with the current date and time. Click Close & Load to get it in a new sheet.

15-Output after inserting current date in Power Query

  • Here’s the final output in a new sheet.

16-Output in a new sheet

Read More: Automatically Enter Date When Data Entered in Excel


4. Apply Power Pivot Calculated Column to Get Current Date

Excel has some built-in COM Add-ins, Power Pivot is one of them. We can use it to insert the current date too. Here also we’ll use the TODAY function in Power Pivot to insert the current date in a column. So when you have a long column to insert the current date then by using this method, you can do it in a few clicks.

  • You may not get the Power Pivot add-in by default, to activate it, open the Excel Options dialog box and click as follows: Add-ins > COM Add-ins > Go.

17-Opening Com Add-ins from Add-ins option

  • Then mark Microsoft Power Pivot for Excel and press OK.

18-Marking Microsoft Power Pivot for Excel Add-in

  • Select the dataset, then click Add to Data Model from the Power Pivot ribbon.

19-Selecting Add to Data Model option from Power Pivot Add-in

  • Next, double-click on the Add Column option and type the new column Name.

20-Adding a new column in Power Pivot

  • We named the column- Current Date. now insert the TODAY function in the first cell of the column-
=TODAY()

Soon after, you will get the current date in the whole column, no need to use the Fill Handle tool.

21-Inserting TODAY function in Power Pivot


Use Power Pivot Measure to Get Current Date

There’s another option in Power Pivot named Measures, this feature can also insert the current date. For that, we’ll need a Pivot Table.

  • Select the dataset range and click: Insert > PivotTable.

22-Inserting a Pivot Table

  • Select the sheet option and mark Add this to the Data Model >> press OK.

23-Selecting sheet option and marking Add this data to the Data Model option

  • Drag Project Name and Start Date to the Rows field, and Budget to the Values field.
  • Later, click as follows: Power Pivot > Measures > New Measure.

24-Selecting New Measure option from Power Pivot menu

  • The table name will be selected automatically according to the range, don’t change it. Or if you want to use another table then insert that table name.
  • Next, give a measure name and insert the TODAY function in the formula section.
  • Select Date from the Category section and choose your desired format from the Format section.

25-Giving measure name and inserting TODAY function with date format

  • The new measure is now available in the PivotTable Fields section, just mark it and it will automatically add a new column in the Pivot Table with the current date.

26-Output of current date using measure


How to Highlight Current Date in Excel?

Sometimes, we need to highlight the current date in our dataset. Which helps us to identify the current date with a fill color or text color. By using the TODAY function in Conditional Formatting, we can perform it easily. Let’s see.

  • Select the date range and click as follows: Home > Conditional Formatting > New Rule.

27-Selecting New Rule option from Conditional Formatting menu

  • After that, select Use a formula to determine which cells to format from the Select a Rule Type box.
  • Then insert the following formula in the formula box and click on the Format tab-
=D5=TODAY()

28-Inserting custom rule with TODAY function

  • From the Fill section, select a fill color and press OK.

29-Selecting conditional formatting fill color

  • It will take you to the previous dialog box, just press OK.

30-Finishing of inserting new rule and fill color

  • My current date is 4/5/2023, the light green color is highlighting it.

31-Output after applying conditional formatting


✍ Things to Remember

✎ The output of the TODAY and NOW functions update only when the worksheet is recalculated or when a macro with these functions is run. The cells not updated continuously have these functions. The date and time will be taken from your computer’s system clock.

✎ You may need to alter the parameters that determine when the workbook or worksheet recalculates if the TODAY function does not update the date when you want it to. Click Options on the File tab, then make sure that Automatic is selected in the Formulas category under Calculation options.

✎  A decimal number is used to represent time values, which are part of a date value (for example, 12:00 PM is represented as 0.5 because it is half of a day).

#VALUE! error occurs when the specified serial number is not a valid Excel time.


Frequently Asked Questions

1. How to Insert Current Time in Excel?

To insert the current time, you can use the shortcut key- CTRL + SHIFT + ; or the NOW function.

2. How to Insert Current Static Date and Time in Excel?

Press CTRL + ; and CTRL + SHIFT + ; to insert the current static date and time together in a cell.


Download Practice Workbook

Download this practice workbook to exercise while you are reading this article.


Conclusion

To conclude, I hope this article has given you some useful information about how to insert current date in Excel both in static and dynamic ways. All of these procedures should be learned and applied to your dataset. Take a look at the practice workbook and put these skills to the test. We’re motivated to keep making tutorials like this because of your valuable support.

If you have any questions – Feel free to ask us. Also, feel free to leave comments in the section below.


Related Articles


<< Go Back to Insert Date | Date-Time in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Bhubon Costa
Bhubon Costa

Bhubon Costa, B.Sc. in Naval Architecture & Marine Engineering from Bangladesh University of Engineering & Technology, has worked with the ExcelDemy since 2021. Currently, he has been working as a reviewer. Notably, he has written over 90 articles and led several VBA content development teams. He has a great passion for the fields of data analytics and data science. His areas of expertise include Excel VBA, Power Query, Pivot Table, Power BI, MySQL, PostgreSQL, machine learning, and Python... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo