Excel Drop Down List Select Multiple: Step-by-Step Guide
In this article
By default, Microsoft Excel does not allow you to select multiple items from a data validation drop-down list; selecting a new item simply replaces the previous one. To achieve multiple selections, you must use a VBA (Visual Basic for Applications) script that intercepts the change event of a cell and appends new selections to the existing text rather than overwriting it. This allows you to build a comma-separated list of values within a single cell, which is essential for tagging, assigning multiple team members to a project, or selecting multiple categories for a single entry.
What You'll Need
- Microsoft Excel installed on a Windows or Mac computer (Note: VBA functionality differs slightly between OS versions).
- A workbook saved in the .xlsm (Excel Macro-Enabled Workbook) format, as standard .xlsx files cannot store the required code.
- A predefined list of items to serve as your drop-down options.
- Basic access to the Developer tab or the ability to open the Visual Basic Editor via keyboard shortcuts.
Step-by-Step
-
Create Your Source List:
Begin by typing the items you want in your drop-down list in a single column on a separate worksheet (e.g., Sheet2). For example, if you are creating a list of project tags, list them as "Urgent", "Review", "Completed", and "On Hold". It is highly recommended to turn this list into an official Excel Table by selecting the range and pressing
Ctrl + T. This ensures that if you add new items to the list later, the drop-down will update automatically. - Set Up Data Validation: Go to the worksheet where you want the drop-down list to appear. Select the cell or range of cells where the list should be active. Navigate to the Data tab on the ribbon, click Data Validation, and in the "Allow" box, select List. In the "Source" box, highlight the range of cells containing your source list from Step 1. Click OK. At this stage, you have a standard drop-down that only allows one selection.
-
Open the Visual Basic Editor:
Since Excel has no built-in "multi-select" toggle, you must enter the backend code. Right-click on the sheet tab name at the bottom of your screen (e.g., "Sheet1") and select View Code. This will open the Visual Basic for Applications (VBA) editor window specifically for that worksheet. Alternatively, you can press
Alt + F11and double-click the specific sheet in the Project Explorer on the left. -
Insert the Multi-Select Script:
Copy and paste the following code into the white code window. This script monitors changes in the worksheet; when a cell with data validation is changed, it checks if the cell already contains a value and adds the new selection to the end of the string.
Private Sub Worksheet_Change(ByVal Target As Range) Dim Oldvalue As String Dim Newvalue As String On Error Resume Next If Target.Column = 1 Then If Target.SpecialCells(xlCellTypeAllValidation) Is Nothing Then Exit Sub End If If Target.Value = "" Then Exit Sub Application.EnableEvents = False Newvalue = Target.Value Application.Undo Oldvalue = Target.Value Target.Value = Newvalue If Oldvalue & "" Like "*" & Newvalue & "*" Then Target.Value = Oldvalue Else If Oldvalue & "" = "" Then Target.Value = Newvalue Else Target.Value = Oldvalue & ", " & Newvalue End If End If Application.EnableEvents = True End If End Sub
Note: In the lineIf Target.Column = 1 Then, the number 1 represents Column A. If your drop-down lists are in Column B, change this to 2; for Column C, change it to 3, and so on. If you want this to work across the entire sheet regardless of the column, remove theIf Target.Column = 1 Thenand the correspondingEnd Ifline. - Save the Workbook Correctly: Close the VBA window to return to Excel. You must now save your file. Go to File > Save As and change the file extension from .xlsx to Excel Macro-Enabled Workbook (.xlsm). If you save it as a standard workbook, the code will be deleted, and the multi-select functionality will vanish the next time you open the file.
- Test the Functionality: Click your drop-down cell and select an item. Then, click the same cell again and select a different item. The cell should now display both items separated by a comma (e.g., "Urgent, Review"). If you select the same item twice, the script is designed to prevent duplicates, so it will not add the item again.
Common Mistakes
One of the most frequent errors is forgetting to save the file as an .xlsm workbook. Because macros can potentially contain malicious code, Excel strips them out of standard .xlsx files for security. If you save as .xlsx, your hard work in the VBA editor is lost instantly.
Another common mistake is applying the code to the wrong "Object." Many users paste the code into a standard Module (Insert > Module) rather than the specific Sheet object. Because this is a Worksheet_Change event, it must reside within the sheet where the action is happening. If the code is in a general module, it will never trigger because it isn't "listening" to the sheet's changes.
Users also often forget to adjust the Target.Column variable. If your drop-down is in Column E but the code says Target.Column = 1, nothing will happen when you select an item because the code is only looking for changes in Column A. Always verify your column index before testing.
Tips
To make your multi-select lists cleaner, use Wrap Text on the cells containing the drop-downs. As you select more items, the text will extend horizontally and may be cut off by the next cell. Enabling Wrap Text (Home tab > Wrap Text) allows the cell to expand vertically, keeping all selected items visible.
If you want to change the separator from a comma to something else, such as a semi-colon or a line break, locate the line Target.Value = Oldvalue & ", " & Newvalue. Change ", " to "; " for semi-colons. To use a line break, use vbCrLf instead of the quoted string, though this requires Wrap Text to be enabled to see the effect.
To clear a cell that has multiple selections, simply select the cell and press the Delete key on your keyboard. The VBA script is written to handle empty values (via If Target.Value = "" Then Exit Sub), so it won't throw an error when you clear the cell; it will simply stop running and allow the cell to remain blank.
Troubleshooting
The drop-down works, but it still only selects one item: First, check if you saved the file as .xlsm. Second, ensure the code is pasted into the Sheet object (e.g., Sheet1) and not a Module. Third, verify that the Target.Column number matches the column where your drop-down is located.
Excel is frozen or the drop-down stopped responding: This often happens if a macro crashed midway through execution, leaving Application.EnableEvents set to False. When this happens, Excel stops listening for any changes. To fix this, press Alt + F11, press Ctrl + G to open the Immediate Window at the bottom, type Application.EnableEvents = True, and press Enter. Your drop-downs should now respond again.
I get a security warning about macros: When you open the file, Excel will likely show a yellow bar at the top stating "Macros have been disabled." You must click Enable Content for the multi-select functionality to work. You can avoid this for specific folders by adding them to "Trusted Locations" in File > Options > Trust Center > Trust Center Settings > Trusted Locations.
Frequently Asked Questions
Can I use this on Excel for the Web?
No, VBA macros do not run in the web browser version of Excel. This functionality requires the desktop application for Windows or Mac.
Will this work on a Mac?
Yes, but the process of opening the VBA editor may differ slightly. You may need to enable the Developer tab in Excel Preferences first. The code itself is generally compatible with Excel for Mac.
How do I stop the list from adding the same item twice?
The provided script already includes a check (If Oldvalue & "" Like "*" & Newvalue & "*") that prevents duplicate entries from being added to the cell.
Can I have different columns with different multi-select behaviors?
Yes. You can modify the If Target.Column = 1 Then line to use a Select Case statement or multiple Or operators (e.g., If Target.Column = 1 Or Target.Column = 3 Then) to apply the logic to specific columns.
Does this slow down my workbook?
For most users, no. The script is very lightweight and only triggers when a cell is changed. However, in massive workbooks with thousands of calculations, any VBA event can add a slight delay.
Can I use this with a dynamic named range?
Absolutely. As long as the Data Validation is set up correctly using a named range or a Table reference, the VBA script will work regardless of how the source list is managed.