Time Dropdown in Excel: How to Create and Format It
In this article
To create a time dropdown in Excel, you must first create a list of your desired time increments in a separate range of cells, then use the Data Validation tool to link those cells to your target input field. Because Excel does not have a built-in "time picker" calendar or clock widget, the most reliable method is using a predefined list that ensures users enter time in a consistent format, which prevents errors in time-based calculations and formulas.
What You'll Need
- Microsoft Excel (Desktop version for full Data Validation features).
- A dedicated worksheet or a hidden column to store your time intervals.
- A basic understanding of how to format cells as "Time".
Step-by-Step
- Create Your Time Source List: Open a new sheet or move to an unused area of your current worksheet (for example, Column Z). In the first cell, type your starting time, such as "8:00 AM". In the cell directly below it, type the next increment, such as "8:30 AM".
- Auto-Fill the Sequence: Highlight both cells. Hover your mouse over the bottom-right corner of the selection until a small black cross (the Fill Handle) appears. Click and drag this handle down until you have covered the entire range of time you need (e.g., from 8:00 AM to 6:00 PM). Excel will automatically recognize the 30-minute pattern and fill the rest of the list.
- Format the Source List: To ensure the dropdown looks professional, select the entire list of times. Right-click and choose Format Cells. Under the Number tab, select Time and choose the specific format you prefer (e.g., 1:30 PM). Click OK.
- Select the Target Cell: Go to the cell or range of cells where you want the dropdown menu to appear. This is where the user will actually be picking the time.
- Open Data Validation: Navigate to the Data tab on the top ribbon. In the Data Tools group, click on Data Validation. (Note: Menu labels may differ slightly depending on your version of Excel or region).
- Configure the Validation Criteria: In the Data Validation dialog box, locate the Settings tab. Under the Allow dropdown menu, select List.
- Link the Source: Click inside the Source box. While the cursor is blinking there, navigate to your time source list and highlight all the time cells you created in Step 2. The box should now look something like
=$Z$1:$Z$20. - Finalize the Setup: Click OK. You will now see a small downward arrow appear next to your target cell whenever it is selected. Clicking this arrow reveals your list of times.
- Hide the Source List: To prevent users from accidentally deleting your time intervals, right-click the column containing the source list (e.g., Column Z) and select Hide. The dropdown will continue to function even while the source cells are hidden.
Common Mistakes
One of the most frequent errors is creating the time list as text rather than as actual time values. If you type "8am" instead of "8:00 AM", Excel may treat the entry as a string of text. This is problematic because you cannot perform math (like calculating total hours worked) on text. Always use the colon separator and ensure the cell format is set to Time.
Another common mistake is forgetting to use absolute references in the source box. While Excel usually adds the dollar signs (e.g., $A$1:$A$10) automatically when you select a range with the mouse, manually typing the range without them can cause the dropdown to "shift" if you copy the cell to other rows, leading to empty lists or incorrect time options.
Users also frequently forget to lock the worksheet. Since the dropdown relies on a source list, if a colleague accidentally deletes the hidden column, all dropdowns linked to that range will break or show an error. Protecting the sheet while leaving the dropdown cells unlocked is a critical final step for shared documents.
Tips
To make your dropdown more flexible, consider using a Named Range. Instead of linking to =$Z$1:$Z$20, highlight your time list and type a name like "TimeList" in the Name Box (the small box to the left of the formula bar). In the Data Validation source box, simply type =TimeList. This makes the formula easier to read and allows you to move the list to a different sheet without breaking the link.
If you need very granular time options (e.g., every 5 or 15 minutes), don't type them all manually. Use the Fill Handle method described in the steps, but set your first two cells to "8:00" and "8:05". Excel's pattern recognition is highly efficient for these types of sequences.
For a cleaner look, use the Input Message tab within the Data Validation window. You can create a small pop-up hint that appears when a user clicks the cell, saying something like "Please select a start time from the list." This improves the user experience and reduces data entry errors.
Troubleshooting
The dropdown arrow isn't appearing: First, check the Data Validation settings. Ensure that the "In-cell dropdown" checkbox is checked in the Settings tab. If it is checked but still not appearing, ensure the cell is not merged with others, as merged cells can sometimes interfere with the display of the validation arrow.
The times look like decimals (e.g., 0.333): This happens because Excel stores time as a fraction of a 24-hour day. A value of 0.5 represents 12:00 PM. To fix this, select the cells, go to the Home tab, and change the number format dropdown from "General" to "Time".
I get an error saying "The source currently evaluates to an error": This usually occurs if you are referencing a range on another worksheet in an older version of Excel that doesn't support cross-sheet references in Data Validation. The fix is to create a Named Range for your time list first, then use that name in the validation box.
Users can still type their own times: By default, Data Validation allows users to override the list if they type manually. To stop this, go to the Error Alert tab in the Data Validation window and check the box "Show error alert after invalid data is entered." Set the Style to "Stop" to completely prevent non-list entries.
Frequently Asked Questions
Can I make a dynamic time dropdown that changes based on another cell?
Yes, this is called a dependent dropdown. You would need to create multiple named ranges for different time sets and use the =INDIRECT() function in the Data Validation source box to call the specific range based on the value of the first cell.
Is there a way to create a scrolling time picker like on a smartphone?
Excel does not have a native scrolling time picker. The closest alternative is the Data Validation list. For a true "picker" interface, you would need to use VBA (Visual Basic for Applications) to create a UserForm, which is significantly more complex and requires the file to be saved as an .xlsm macro-enabled workbook.
How do I add or remove times from my existing dropdown?
If you used a standard range, you must insert or delete rows within that range on your source sheet. If you used a Table (Ctrl+T) for your source list, the dropdown will automatically expand to include new entries added to the bottom of the table.
Why does my time dropdown show 0:00 instead of 12:00 AM?
This is a formatting preference. To change this, go to Format Cells and choose a time format that explicitly shows "AM/PM". The 24-hour clock (military time) will show midnight as 0:00, while the 12-hour clock will show it as 12:00 AM.
Can I use a time dropdown in Excel Online?
Yes, Data Validation lists work in Excel for the Web. However, the setup process is slightly more limited than the desktop version. It is recommended to set up the validation on the desktop app and then upload the file to OneDrive/SharePoint.