Add a date picker using Data Validation
Excel's Data Validation feature lets you create a dropdown calendar that appears when someone clicks a cell. This is the built-in method that works in Excel for Windows, Mac, and online without needing add-ons or macros. When you set it up, users see a small calendar icon in the cell, and clicking it opens a date picker they can navigate by month and year.
The date picker works best when you want to restrict entries to a specific range — for example, only dates in the current year, or only weekdays. It prevents typos and makes data entry faster, especially in shared spreadsheets where multiple people are entering dates.
Key Takeaways
- Data Validation is the standard Excel feature for adding a date picker; it creates a dropdown calendar without macros or add-ons.
- You can restrict dates to a range (such as between January 1 and December 31 of a specific year) or allow any date.
- The date picker appears as a small calendar icon in the cell and opens when clicked.
- Data Validation works the same way in Excel for Windows, Mac, and Excel online, though the appearance of the calendar icon varies slightly.
- If you need a more complex date picker or want to store formulas alongside dates, you may need a macro or third-party add-in instead.
Set up Data Validation for any date
Start by selecting the cell or range where you want the date picker to appear. Click the cell, then hold Shift and click the last cell in the range if you want multiple cells to have the same date picker.
Open the Data tab at the top of the ribbon. In Excel for Windows, click Data Validation in the Data Tools group. In Excel for Mac, it is under the Data menu as Validation. In Excel online, click Data Validation under the Data tab.
A dialog box opens. In the dropdown that says "Allow", select Date. Leave the "Data" dropdown set to between if you want to set a date range, or change it to not between, equal to, greater than, or less than depending on what you need. If you want to allow any date with no restrictions, select Date and then change "Data" to not between and leave the date fields empty — this sounds backwards, but it tells Excel to accept any date.
If you chose "between", enter a start date in the first field and an end date in the second. Use the format your system expects (usually MM/DD/YYYY in the US). Click OK. The date picker is now active on those cells.
Restrict dates to a specific range
The most common use is to limit dates to a range. For example, you might want employees to enter only dates within the current fiscal year, or only dates that are not weekends.
After you select Date in the Allow dropdown and between in the Data dropdown, enter your start date in the first field. For a full calendar year, use 1/1/2024 (or whatever year you need). In the second field, enter the end date — 12/31/2024 for the full year.
You can also use cell references instead of typing dates directly. If you have a start date in cell A1 and an end date in cell B1, type =A1 in the first field and =B1 in the second. This way, if the dates change, the validation updates automatically.
Click OK. Now when someone clicks a cell in your range, they see the calendar icon. Clicking it opens a date picker. Any date outside your range will show an error message if someone tries to enter it manually.
Add an error message for invalid dates
By default, Excel shows a generic error if someone enters a date outside your allowed range. You can customize this message so users understand what went wrong.
Select your cells again and open Data Validation. Click the Error Alert tab (in Excel online, this may be labeled differently or combined with the main tab). In the "Style" dropdown, choose Stop to prevent invalid entries, Warning to allow them but show a caution, or Information to show a message that does not block entry.
Type a title for the error in the "Title" field — something like "Invalid Date". In the "Error message" field, write what you want users to see — for example, "Please enter a date between January 1 and December 31, 2024." Click OK.
Now when someone tries to enter a date outside your range, they see your custom message instead of Excel's default error.
Use the date picker in Excel online
Excel online works the same way as the desktop version, but the calendar icon and date picker look slightly different. After you set up Data Validation on a cell, users see a small calendar icon when they click the cell. Clicking the icon opens a date picker that shows the current month.
Users can click the left and right arrows to move between months, or click the month and year at the top to jump to a different year. Once they select a date, it fills into the cell automatically. The date picker closes after selection.
If you set a date range in your validation rules, the date picker only allows selection within that range — dates outside it appear grayed out and cannot be clicked.
Troubleshoot when the date picker does not appear
If you set up Data Validation but do not see a calendar icon, check that you selected Date in the Allow dropdown, not "List" or another option. Some users accidentally choose "List" and then type dates manually, which does not create a date picker.
In Excel for Mac, the date picker may not appear if you are using an older version. Update Excel to the latest version through the Microsoft menu. In Excel online, the date picker works in all modern browsers, but may not work in Internet Explorer.
If you see the calendar icon but it does not open when clicked, try clicking directly on the icon rather than the cell itself. If the cell is locked as part of sheet protection, the date picker may be disabled — check your sheet protection settings under the Review tab.
When you need a macro or add-in instead
Data Validation covers most date-picking needs, but some situations call for something more advanced. If you need a date picker that also runs a formula or updates other cells automatically when a date is selected, you will need a macro (a small program written in Excel's VBA language).
If you want a date picker with a different look, or one that works with specific calendar systems (like a lunar calendar), third-party add-ins from the Microsoft Store may help. Search "date picker" in the Add-ins section of the Insert tab to see what is available for your version of Excel.
For most spreadsheets, though, Data Validation is simpler and faster than either option. It requires no coding, works across all versions of Excel, and does not slow down your file.
Frequently Asked Questions
Can I use a date picker in a shared Excel file?
Yes. When you share a file through OneDrive or SharePoint, the date picker works for all users who open it in Excel online or the desktop app. Each person sees the same calendar icon and can use the date picker independently. The validation rules apply to everyone.
What happens if someone pastes a date into a validated cell?
If you set Data Validation to "Stop" invalid entries, pasted dates outside your range will be rejected and the paste will fail. If you set it to "Warning" or "Information", the paste goes through but the user sees your error message. To prevent this, you can lock the cells and protect the sheet, which disables pasting entirely.
Can I make the date picker required so cells cannot be left blank?
Data Validation does not have a built-in "required" option, but you can use a formula in another column to check if a date cell is empty. In a helper column, type =IF(A1="","Missing date","OK"). This flags blank cells without blocking the date picker itself.
Does the date picker work on mobile Excel apps?
The date picker works in Excel for iPad and Excel for Android, but it looks different — it uses the device's native date picker instead of Excel's calendar. The functionality is the same: users select a date and it fills into the cell. Validation rules still apply.
Can I change the format of dates after someone picks them?
Yes. The date picker stores the actual date value, not text, so you can format it any way you want. Select the cells, right-click, choose "Format Cells", click the "Number" tab, select "Date" from the Category list, and pick your format. The dates will display in your chosen format while the underlying value stays the same.