How to Add Date Picker in Excel
Excel for the web now has a date picker built in. Desktop Excel still does not, so this guide covers every route that works: Data Validation to check typed dates, a drop-down list of dates with no add-ins, the ActiveX calendar control (32-bit Windows) and a copy-and-paste VBA calendar form for everything else. Each method is animated step by step, so you can see exactly where to click.
Quick Answer
Excel for the web has a built-in date picker: format the cell as a date and double-click it. Desktop Excel (Windows and Mac) still has no native pop-up calendar. There, the no-code route is Data Validation (Data tab > Data Validation > Allow: Date), which checks typed dates, or a drop-down list of dates built with SEQUENCE. For a real pop-up calendar on the desktop, use the ActiveX Date and Time Picker (32-bit Windows only) or the VBA calendar form below.
Quick path: Data tab > Data Validation > Allow: Date > set your date range > OK.
Excel for the web: the built-in date picker
Since early 2024, Excel for the web has had a date picker of its own. Microsoft's Excel team announced it in the January 2024 "What's New in Excel" update: the pop-up is enabled automatically when a cell is formatted as a date or already holds a date, and you double-click the cell to add or change the date. The announcement covered Excel for the web only, and Microsoft's own Q&A answers from January 2025 still point desktop users to the old ActiveX control or an add-in, which is why the rest of this guide exists.
How to use it
- Open the workbook in Excel for the web (from OneDrive, SharePoint or excel.cloud.microsoft).
- Select the cells and give them a date format: Home > Number Format > Short Date. A cell that already contains a date counts too.
- Double-click the cell. A small calendar button appears beside it and the calendar opens.
- Click a day. Excel writes the date in your regional format. You can still type a date by hand.
Good to know: people who open the same workbook in desktop Excel will not see this picker. Add Data Validation (Method 1) to the same cells so their typed dates are still checked.
Method 1: Data Validation (All Versions)
Data Validation is the simplest way to ensure users enter valid dates in Excel. While it does not show a visual calendar, it restricts input to valid dates and can display helpful input messages.
This value doesn't match the data validation restrictions defined for this cell.
Click the first cell and drag down the column. Every cell you select gets the same date rule.
Step-by-Step Instructions
- Select the cell or range where you want date entry.
- Go to the Data tab on the ribbon.
- Click Data Validation in the Data Tools group.
- Under "Allow," select Date.
- Choose your criteria:
- between: Set start and end dates
- greater than: Only allow dates after a specific date
- less than: Only allow dates before a specific date
- equal to: Allow only one specific date
- Enter your date values in the Start date and End date fields.
- Click OK to apply.
Adding an Input Message
Make date entry more user-friendly by adding an input message that appears when the cell is selected:
- In the Data Validation dialog, click the Input Message tab.
- Check "Show input message when cell is selected."
- Enter a Title (e.g., "Enter Date").
- Enter an Input message (e.g., "Please enter a date between 1/1/2026 and 12/31/2026").
- Click OK.
Pro Tip: Use cell references for date ranges instead of typing dates directly. For example, enter =A1 as the start date if A1 contains your minimum date. This makes ranges dynamic and easier to update.
Make a drop-down calendar with Data Validation (no add-ins)
Most people searching for a "drop-down calendar" in Excel want a list of dates they can pick from, not just a rule that rejects bad entries. You can build exactly that with a helper column and a List rule. It works in Excel for Windows, Mac and the web, and needs no add-in or macro.
In a spare column, type =SEQUENCE(365,1,DATE(2026,1,1),1). Excel spills a full year of dates down the column.
- In a spare column (D in the animation), type
=SEQUENCE(365,1,DATE(2026,1,1),1)and press Enter. Excel spills every date of the year down the column. Format the column as dates if it shows serial numbers. In Excel 2019 or earlier, which has no SEQUENCE, type the first date and drag the fill handle down instead. - Select the cells that need a date.
- Go to Data > Data Validation, set Allow to List, and in Source enter
=$D$2:$D$366(adjust to your column). - Click OK. Each cell now shows an arrow when selected; click it and pick a date.
Keep the list short so the drop-down stays usable: =SEQUENCE(60,1,TODAY(),1) gives the next 60 days and moves forward every day. You can hide the helper column or put it on another sheet; the rule still reads it. For lists that grow on their own, depend on another cell or search as you type, see how to create a drop-down list in Excel.
Method 2: ActiveX Date and Time Picker (Windows 32-bit)
The Microsoft Date and Time Picker Control provides a visual drop-down calendar. This is the closest thing to a built-in date picker, but it only works on Windows with 32-bit Excel.
Important: This control requires 32-bit Excel on Windows (File > Account > About Excel shows which you have). It is not available on 64-bit Excel, Mac, or Excel Online. Microsoft's 32-bit and 64-bit compatibility notes say 64-bit Office cannot load the DateTimePicker control and that it was installed by 32-bit Office versions earlier than Office 2010, so a newer 32-bit Excel may not have it either. If you have 64-bit Excel, skip to Method 3 (VBA) or use a third-party add-in.
Enable the Developer Tab
First, make sure the Developer tab is visible in your Excel ribbon:
- Right-click anywhere on the ribbon.
- Select Customize the Ribbon.
- In the right column, check the box next to Developer.
- Click OK.
On the Developer tab, click Insert to open the controls gallery.
Insert the Date Picker Control
- Go to the Developer tab.
- Click Insert in the Controls group.
- In the ActiveX Controls section, click More Controls (the hammer-and-wrench icon).
- Scroll down and select Microsoft Date and Time Picker Control 6.0 (SP6).
- Click OK.
- Draw the control on your worksheet by clicking and dragging.
Link the Date Picker to a Cell
- Right-click the date picker control.
- Select Properties.
- Find the LinkedCell property.
- Enter the cell reference (e.g.,
B2) where you want the selected date to appear. - Close the Properties window.
- Click Design Mode on the Developer tab to exit design mode.
Now when you click the date picker, a calendar drops down. Selecting a date automatically enters it in the linked cell.
| Property | Description | Example |
|---|---|---|
| LinkedCell | Cell where selected date appears | B2 |
| Format | Date display format | 1 - dtpShortDate |
| Value | Initial/current date value | 1/11/2026 |
| Enabled | Whether control is active | True |
Method 3: VBA Calendar UserForm (All Versions)
If you have 64-bit Excel (the default Microsoft 365 install), the ActiveX control is not available, but a VBA UserForm gives you a pop-up calendar that opens when you click a cell. The form below draws its own calendar when it opens, so there are no buttons to place by hand: paste three short pieces of code and you are done.
Press Alt + F11 to open the Visual Basic editor (or click Visual Basic on the Developer tab).
Build the calendar form (copy and paste)
- Press Alt + F11 to open the VBA editor (or Developer > Visual Basic).
- Click Insert > UserForm. In the Properties pane (press F4 if it is hidden) set (Name) to
CalendarForm. Right-click the form, choose View Code, and paste the form code below. - Click Insert > Class Module, set its (Name) to
DayButton, and paste the class code. - In the Project pane, double-click Sheet1 under Microsoft Excel Objects and paste the sheet code. Change
B2:B100to the cells that should get the picker. - Save the workbook as .xlsm (macro-enabled) and enable macros when asked.
1. CalendarForm (UserForm code)
Option Explicit
Public TargetCell As Range
Private mFirst As Date
Private mDays As Collection
Private WithEvents btnPrev As MSForms.CommandButton
Private WithEvents btnNext As MSForms.CommandButton
Private lblTitle As MSForms.Label
Private Sub UserForm_Initialize()
Dim i As Integer, hdr As MSForms.Label, d As DayButton
Me.Caption = "Pick a date"
Me.Width = 236: Me.Height = 228
Set btnPrev = Me.Controls.Add("Forms.CommandButton.1", "btnPrev")
btnPrev.Caption = "<": btnPrev.Left = 6: btnPrev.Top = 6
btnPrev.Width = 24: btnPrev.Height = 20
Set btnNext = Me.Controls.Add("Forms.CommandButton.1", "btnNext")
btnNext.Caption = ">": btnNext.Left = 200: btnNext.Top = 6
btnNext.Width = 24: btnNext.Height = 20
Set lblTitle = Me.Controls.Add("Forms.Label.1", "lblTitle")
lblTitle.Left = 34: lblTitle.Top = 9: lblTitle.Width = 162
lblTitle.TextAlign = fmTextAlignCenter: lblTitle.Font.Bold = True
For i = 0 To 6
Set hdr = Me.Controls.Add("Forms.Label.1", "hdr" & i)
hdr.Caption = Choose(i + 1, "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa")
hdr.Left = 6 + i * 31: hdr.Top = 34: hdr.Width = 30
hdr.TextAlign = fmTextAlignCenter
Next i
Set mDays = New Collection
For i = 0 To 41
Set d = New DayButton
Set d.Btn = Me.Controls.Add("Forms.CommandButton.1", "day" & i)
d.Btn.Left = 6 + (i Mod 7) * 31: d.Btn.Top = 50 + (i 7) * 23
d.Btn.Width = 30: d.Btn.Height = 22
Set d.Form = Me
mDays.Add d
Next i
End Sub
Public Sub Start(cell As Range)
Set TargetCell = cell
If IsDate(cell.Value) Then
mFirst = DateSerial(Year(cell.Value), Month(cell.Value), 1)
Else
mFirst = DateSerial(Year(Date), Month(Date), 1)
End If
Render
Me.Show
End Sub
Private Sub Render()
Dim i As Integer, offset As Integer, dt As Date
lblTitle.Caption = Format(mFirst, "mmmm yyyy")
offset = Weekday(mFirst, vbSunday) - 1
For i = 1 To mDays.Count
dt = mFirst - offset + (i - 1)
With mDays(i).Btn
.Caption = Day(dt)
.Tag = CStr(CDbl(dt))
.Font.Bold = (dt = Date)
.Enabled = (Month(dt) = Month(mFirst))
End With
Next i
End Sub
Public Sub Pick(d As Date)
TargetCell.Value = d
TargetCell.NumberFormat = "m/d/yyyy"
Unload Me
End Sub
Private Sub btnPrev_Click()
mFirst = DateAdd("m", -1, mFirst): Render
End Sub
Private Sub btnNext_Click()
mFirst = DateAdd("m", 1, mFirst): Render
End Sub2. DayButton (Class Module)
Option Explicit
Public WithEvents Btn As MSForms.CommandButton
Public Form As CalendarForm
Private Sub Btn_Click()
Form.Pick CDate(CDbl(Btn.Tag))
End Sub3. Sheet1 (open the calendar when a cell in column B is selected)
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
' Open the calendar for any single cell in B2:B100
If Target.Cells.CountLarge = 1 Then
If Not Intersect(Target, Me.Range("B2:B100")) Is Nothing Then
CalendarForm.Start Target
End If
End If
End SubClick a cell in column B and the calendar opens on that cell's month (or on today's month if the cell is empty). Click a day and the date lands in the cell. The < and > buttons move between months. Written for Excel for Windows; Excel for Mac also runs UserForms, but check the form on a Mac before you share the workbook.
Alternative: Use a Third-Party Calendar Class
If you would rather not maintain your own code, two well-known options do the same job:
- Ron de Bruin's Date Picker: a free add-in for Excel on Windows and Mac. Right-click a cell and choose Date Picker to open it.
- Trevor Eyre's CalendarForm: a VBA date picker form you download and import into your workbook, with no ActiveX dependency
Pro Tip: Save your workbook as a macro-enabled file (.xlsm) when using VBA. Regular .xlsx files cannot store VBA code.
Excel 365 and Excel Online Options
Excel for the web has the built-in picker described above. Excel 365 on the desktop still does not, so these are your options:
Excel 365 Desktop
- Data Validation: Works fully (Method 1)
- Drop-down list of dates: Works fully (Method 1, second part)
- ActiveX Controls: Only on 32-bit Windows installations
- VBA UserForms: Works on Windows (Method 3); test on Mac before sharing
- Add-ins: Install calendar add-ins from Home > Add-ins > More Add-ins
Excel Online (Web)
- Built-in date picker: Yes. Format the cell as a date and double-click it
- Data Validation: Works, including date rules and drop-down lists
- ActiveX/VBA: Not supported in the browser
- Office Scripts: Can automate date entry but has no visual picker
Recommended Add-in for Date Pickers
Mini Calendar and Date Picker by Vertex42 is free and works in Excel for Windows, Mac and the web. It embeds a small monthly calendar in the worksheet itself, and clicking a day writes the date into the selected cell. Vertex42 suggests placing it at the top of the sheet and freezing panes so it stays in view.
- Go to Home > Add-ins > More Add-ins (older builds: Insert > Get Add-ins).
- Search for "date picker" and click Add on Mini Calendar and Date Picker.
- Select a cell, then click a date in the calendar.
Date Formatting in Excel
Once you have a date picker working, you may want to control how dates display.
Changing Date Format
- Select the cells containing dates.
- Press Ctrl + 1 (or right-click > Format Cells).
- Select the Number tab.
- Choose Date from the Category list.
- Select your preferred format or enter a custom format.
- Click OK.
| Format Code | Example Output | Description |
|---|---|---|
| m/d/yyyy | 1/11/2026 | US short date |
| dd/mm/yyyy | 11/01/2026 | European short date |
| mmmm d, yyyy | January 11, 2026 | Long date format |
| yyyy-mm-dd | 2026-01-11 | ISO 8601 format |
| ddd, mmm d | Sun, Jan 11 | Abbreviated with day |
Tips & Best Practices
Use Data Validation as a baseline
Even if you add a visual date picker, keep Data Validation on the target cells to catch any manually typed invalid dates.
Consider your Excel version
32-bit Windows users can use ActiveX controls. 64-bit users should use the VBA form, a drop-down list of dates, or an add-in. Mac users: Data Validation, the drop-down list, or an add-in. Excel for the web: the built-in picker.
Test before sharing workbooks
ActiveX controls may not work when shared with users on different systems. Test with representative users before distributing.
Keep date format consistent
Use the same date format throughout your workbook to avoid confusion, especially with international teams (US vs European formats).
Sharing with Excel for the web users
Format the date cells as dates and web users get the built-in picker automatically; keep Data Validation on the same cells for everyone else. VBA and ActiveX do not run in the browser.
Troubleshooting
Date and Time Picker Control Not Found
- 64-bit Excel: This control is not available in 64-bit Excel. Use VBA or an add-in instead.
- Control not installed: The control lives in mscomct2.ocx, which Microsoft says was installed by 32-bit Office versions earlier than Office 2010, so newer installs may lack it. If the file is on your PC, you can try registering it with regsvr32 from an administrator Command Prompt, but 64-bit Excel cannot load it either way.
ActiveX Control Grayed Out
- Protected View: Click "Enable Editing" if you see the yellow bar at the top of Excel.
- Macro security: Go to File > Options > Trust Center > Trust Center Settings > Macro Settings and enable macros.
VBA Calendar Not Appearing
- Macros disabled: Enable macros in Trust Center settings.
- Wrong file type: Save as .xlsm (macro-enabled) instead of .xlsx.
- Form not called: Check that the Worksheet_SelectionChange event code is in the correct sheet module.
Dates Displaying as Numbers
- Cell formatting: Select the cells, press Ctrl+1, and format as Date.
- Linked cell issue: The ActiveX LinkedCell may output a serial date number. Format that cell as a Date.
No Date Picker in Excel for the Web
- Cell format: The cell must be formatted as a date or already contain a date. Set Home > Number Format > Short Date, then double-click the cell.
- Desktop app: The picker only exists in Excel for the web. Microsoft announced it in January 2024 as rolling out to web users, and its January 2025 Q&A answers still send desktop users to the ActiveX control or an add-in.
- Dates four years and one day off: That 1,462-day gap is the signature of the 1904 date system. In desktop Excel the setting is under File > Options > Advanced > When calculating this workbook (on a Mac: Excel > Preferences > Formulas and Lists > Calculation). Clearing "Use 1904 date system" shifts every date already in the workbook by the same amount, so try it on a copy first.
Frequently Asked Questions
Does Excel have a built-in date picker?
Excel for the web does: format a cell as a date and double-click it to open the calendar. Desktop Excel for Windows and Mac has no native pop-up calendar. On the desktop, use Data Validation to check typed dates, build a drop-down list of dates, insert the ActiveX Date and Time Picker (32-bit Windows only), or add the VBA calendar form from this guide.
Does Excel for the web have a date picker?
Yes. Since 2024, Excel for the web shows its own calendar for any cell that is formatted as a date or already contains one. Double-click the cell to open it. The same workbook opened in desktop Excel will not show the picker.
How do I add a drop-down calendar in Excel?
In desktop Excel, the Microsoft Date and Time Picker control gives you a drop-down calendar: Developer > Insert > More Controls > Microsoft Date and Time Picker Control 6.0 (SP6), draw it on the sheet and set LinkedCell in its Properties. It only works in 32-bit Excel, and only when mscomct2.ocx is installed. In 64-bit Excel, use a drop-down list of dates with Data Validation or the VBA calendar form instead.
How do I add a drop-down calendar in Excel without add-ins?
Put a column of dates on the sheet with =SEQUENCE(365,1,DATE(2026,1,1),1), select the cells that need a date, then go to Data > Data Validation, set Allow to List and use the date column as the Source. Each cell gets a drop-down of dates. This works in every current version of Excel, including Mac and the web.
Why is the Date and Time Picker missing in Excel?
The Microsoft Date and Time Picker Control lives in mscomct2.ocx, a 32-bit file that 64-bit Excel cannot load, and Microsoft 365 installs 64-bit Excel by default. Microsoft also notes that the control was installed by 32-bit Office versions earlier than Office 2010, so a newer 32-bit Excel may not list it either. Either way, use a drop-down list of dates, the VBA calendar form, or an add-in instead.
How do I insert a date picker in Excel 365?
Excel 365 on the desktop has no built-in control. Use Data Validation (Allow: Date) to check typed dates, build a drop-down list of dates, run the VBA calendar form from this guide, or install a free add-in such as Mini Calendar and Date Picker from Home > Add-ins. In Excel 365 for the web, the date picker is built in.
Can I add a date picker in Excel on Mac?
Excel for Mac does not support ActiveX controls. Mac users can use Data Validation, a drop-down list of dates, the built-in picker in Excel for the web, or a cross-platform add-in such as Mini Calendar and Date Picker. VBA UserForms also load on Mac, but test the form there before sharing the workbook.
How do I make a date picker appear when clicking a cell?
Use the VBA form in Method 3: a Worksheet_SelectionChange event checks whether the selected cell is in your target range and opens the calendar form. Clicking a day writes the date into the cell and closes the form.
What is the best date picker solution for sharing workbooks?
For workbooks shared across different systems, use Data Validation or a drop-down list of dates with clear input messages: both work everywhere, including Excel for the web, where date-formatted cells also get the built-in picker. ActiveX controls may not work on recipients' machines, and VBA needs macros enabled.
Summary
Adding a date picker in Excel depends on your version and requirements:
- Excel for the web has a built-in picker: format the cell as a date and double-click it.
- Data Validation is the universal rule: works in every version, rejects anything that is not a date, and needs no code.
- A drop-down list of dates (SEQUENCE plus a List rule) gives a real drop-down everywhere, with no add-ins.
- ActiveX Date and Time Picker provides a visual calendar but only works on 32-bit Windows Excel.
- The VBA calendar form gives 64-bit Excel a pop-up calendar on click; the workbook must be saved as .xlsm.
- Add-ins such as Mini Calendar and Date Picker work in Excel for Windows, Mac and the web.
For most users, start with Data Validation for its simplicity and universal compatibility. Add a visual date picker only if your specific use case and audience require it.
Create Excel Tutorial Videos
Need to train your team on Excel date pickers and data entry? Deckoholic makes it easy to record screen tutorials with AI voiceover and professional polish.
Try Deckoholic Free