How to Add Calendar Date Picker in Excel 2016

Streamlining your workflow in Excel often involves automating repetitive tasks, and adding a calendar date picker can significantly enhance productivity. In Excel 2016, you can create a date picker using a combination of Excel's built-in features and a simple VBA (Visual Basic for Applications) script. Let's dive into the step-by-step process of adding a calendar date picker in Excel 2016.

Date Picker Add-in for Excel for Windows
Date Picker Add-in for Excel for Windows

Before we begin, ensure that your Excel version is updated to 2016 or later, and that the Developer tab is enabled in your Ribbon. If the Developer tab is not visible, you can enable it by right-clicking on the Ribbon and selecting 'Customize the Ribbon', then checking the box next to 'Developer'.

Excel VBA USERFORMS #25 Date Picker Calendar revealed! Loop through Userforms and Controls  Example
Excel VBA USERFORMS #25 Date Picker Calendar revealed! Loop through Userforms and Controls Example

Preparing Your Workbook

Before creating the date picker, you'll need to set up your workbook with the necessary components. Start by creating a new workbook and naming it 'DatePicker'. In the first sheet, name it 'UserForm' and in the second sheet, name it 'Sheet1'.

How to create a drop down list calendar (date picker) in Excel?
How to create a drop down list calendar (date picker) in Excel?

In 'Sheet1', you'll need a cell where the selected date will be displayed. Let's use cell A1 for this purpose. In the 'UserForm' sheet, you'll need to create a calendar layout using the following range of cells: A1:I13. This will serve as the basis for our date picker.

Creating the Calendar Layout

How to insert dates from a Popup Calendar (date picker) in Excel – user guide | XLTools
How to insert dates from a Popup Calendar (date picker) in Excel – user guide | XLTools

To create the calendar layout, you'll use the following formula in cell A1 of the 'UserForm' sheet and drag it across to I13:

=TEXT(TODAY(),"dddd, mmmm dd, yyyy")

This formula will display the current date in a calendar format. Now, you'll need to create the calendar buttons. In cell A2, enter the following formula and drag it across to I12:

How to Add Date Picker Calendar Drop Down in MS Excel (Easy)
How to Add Date Picker Calendar Drop Down in MS Excel (Easy)

=IF(ROW()<=12,TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-ROW()+2,1),"mmmm"),"")

This formula will create the month buttons for the calendar. Next, you'll create the day buttons. In cell A14, enter the following formula and drag it across to I26:

=IF(ROW()<=13,IF(COLUMN()<=12,DAY(DATE(YEAR(TODAY()),MONTH(TODAY())-ROW()+3,1)),""),"")

302K views · 10K reactions | How to insert a calendar and date picker in Excel‼️ 🗂️ Don’t forget to save this post! 🧑‍🏫 Get your FREE Excel templates with the link in our bio! 🤯 Follow us on TikTok, YouTube, Twit | CheatSheets
302K views · 10K reactions | How to insert a calendar and date picker in Excel‼️ 🗂️ Don’t forget to save this post! 🧑‍🏫 Get your FREE Excel templates with the link in our bio! 🤯 Follow us on TikTok, YouTube, Twit | CheatSheets

This formula will create the day buttons for the calendar. Your calendar layout is now complete.

Adding the VBA Script

Calculate days from/before date in Excel
Calculate days from/before date in Excel
Excel Date Picker - How to Insert? (Step by Step Examples)
Excel Date Picker - How to Insert? (Step by Step Examples)
How To Add 3 Different Date Picker Calendars in Microsoft Excel [Free Download]
How To Add 3 Different Date Picker Calendars in Microsoft Excel [Free Download]
How to Insert a Calendar in Excel (the Simplest Way)
How to Insert a Calendar in Excel (the Simplest Way)
How to Make a Calendar Template in Excel
How to Make a Calendar Template in Excel
Use This Free Excel Date Picker to Enter Dates on Worksheet
Use This Free Excel Date Picker to Enter Dates on Worksheet
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
Calender in Excel ‼️ Amazing Excel trick using data validation and conditional formatting ✅ #Excel
an excel calendar is shown with the date and time for each student to enter it
an excel calendar is shown with the date and time for each student to enter it
NEW Date Picker in Excel for Web – Finally Here
NEW Date Picker in Excel for Web – Finally Here
How To Create a Calendar In Excel 2016 - VERY EASY!
How To Create a Calendar In Excel 2016 - VERY EASY!
Perfect Inserting A Dropdown Calendar In Excel
Perfect Inserting A Dropdown Calendar In Excel
How to create a date picker in Excel!🙏
How to create a date picker in Excel!🙏
How to Make an Interactive Calendar in Excel? (2026 Template)
How to Make an Interactive Calendar in Excel? (2026 Template)
Excel Autofill - how to quickly enter Months, Days, Dates and Numbers without typing
Excel Autofill - how to quickly enter Months, Days, Dates and Numbers without typing
How to make a dynamic calendar in excel
How to make a dynamic calendar in excel
Google Sheets - Add a Pop-Up Calendar Date Picker
Google Sheets - Add a Pop-Up Calendar Date Picker
Create a Calendar in Excel - Tutorial
Create a Calendar in Excel - Tutorial
How to install the Datepicker on your worksheet
How to install the Datepicker on your worksheet
📆 CALENDARIO CONFIGURABLE para Excel [Date Picker VBA]
📆 CALENDARIO CONFIGURABLE para Excel [Date Picker VBA]

Next, you'll add a simple VBA script to make the calendar interactive. Press 'Alt + F11' to open the Visual Basic Editor. In the 'UserForm' sheet, click 'Insert' and select 'UserForm'. Name it 'UserForm1'.

In the 'UserForm1' window, click 'Design Mode' to enable design mode. Now, you'll need to add command buttons to the calendar. Right-click in the 'UserForm1' window and select 'Insert', then 'Command Button'. Add one command button for each day of the month and one for each month.

Now, you'll need to assign a macro to each button. Right-click on the first day button and select 'Assign Macro'. Name the macro 'DatePicker'. Repeat this process for each button, naming each macro 'DatePicker' as well.

Now, you'll need to add the VBA script to the 'DatePicker' macro. In the Visual Basic Editor, press 'Ctrl + G' to open the Immediate window. Enter the following code and press 'Enter':

Sub DatePicker()

Cells(1, 1).Value = ActiveSheet.Cells(ActiveCell.Row, ActiveCell.Column).Value

UserForm1.Show

End Sub

This script will display the selected date in cell A1 of 'Sheet1' when a button is clicked.

Using the Date Picker

Now that your date picker is set up, you can use it in your workbook. In any cell where you want to insert a date, click the cell and run the 'DatePicker' macro. The calendar will appear, allowing you to select a date. Once you've selected a date, the calendar will disappear, and the selected date will be displayed in the cell.

You can customize the appearance of the calendar by changing the font, color, and style of the buttons and text. You can also add additional functionality to the date picker by modifying the VBA script.

Adding a calendar date picker to Excel 2016 can significantly enhance your productivity by streamlining repetitive tasks. With a little effort and some simple VBA scripting, you can create a powerful tool that will save you time and increase your efficiency. Happy automating!