Excel Multiselect Dropdown: Checkbox List How-To
In this article
Excel has no built-in "multiselect" dropdown, so you build one yourself with a small amount of VBA. The standard trick: create a data validation list in one cell, then add a Worksheet_Change macro that appends each new pick to the existing value instead of replacing it, and toggles an item off when you pick it again. You get a cell that accumulates several items separated by commas and deletes them when clicked a second time. Note that this solution requires saving the workbook as .xlsm (macro-enabled), and Excel for the web does not run VBA, so the checkbox behaviour will not work in the browser — only in desktop Excel on Windows or Mac.
What You'll Need
- Desktop Excel (Windows or Mac) with macros enabled. The web version cannot run this.
- A clean list of options, ideally stored on a separate sheet or in a named range, with no blanks and no duplicates.
- Permission to save your file as .xlsm. If your organisation blocks macros, talk to IT before building the file.
- About ten minutes and a willingness to enable the Developer tab once.
Step-by-Step
- Enable the Developer tab. Go to File > Options > Customize Ribbon, tick Developer in the right-hand list, and click OK. On a Mac, use Excel > Preferences > Ribbon & Toolbar. Labels can differ slightly by version.
- Lay out your source list. Put your options in a single column on a sheet called Lists (or another sheet you can hide later). Say A2:A12 holds Fruit options like Apple, Banana, Cherry. Leave no blank cells in the middle — a blank ends the range.
- Give the list a name (optional but tidy). Select A2:A12, click the Name Box to the left of the formula bar, type FruitList and press Enter. This makes the formula easier to read and keeps the dropdown working if the list grows.
- Set up the data validation dropdown. Select the cell where the choices should appear — say D2 on your main sheet. Go to Data > Data Validation > Data Validation. Choose List in the Allow box, then in Source type
=FruitList(or=Lists!$A$2:$A$12if you skipped naming). Click OK. Confirm the dropdown arrow appears. - Open the code window for the correct sheet. Press Alt+F11 (Windows) to open the VBA editor. In the Project pane, double-click the sheet name where your dropdown lives — not a standard module. This matters: the code must sit in the worksheet module or it will not fire.
- Paste the toggle macro. In the code pane, add a Worksheet_Change routine that checks whether the changed cell is D2, reads the new value and the prior value, then either appends the item with a comma or removes it. A simple version looks like this: store the old text in a variable before the change (a Worksheet_SelectionChange routine is the usual way to remember it), compare it against Target.Value, and write a combined string to a helper cell before restoring Target to the combined value. Because writing to the cell from inside a Change event re-triggers the event, add
Application.EnableEvents = Falseat the top and set it back toTrueat the end — this is the detail most guides skip and it is the usual source of runaway behaviour. - Save the file correctly. Close the editor, then File > Save As and pick Excel Macro-Enabled Workbook (*.xlsm). A plain .xlsx will strip the macro silently on the next save.
- Test the toggle. Click D2, pick Apple — the cell should now read Apple. Pick Banana — the cell should read Apple, Banana. Pick Apple again — the cell should read Banana only. Test a pick with a long value, and a pick after manually deleting the cell contents.
- Copy the dropdown down the column. Select D2, copy it, and paste across the rows where you want multi-selection. The worksheet event covers the whole sheet, but the macro must be written to watch the right range — usually you check whether Target is inside a range like D2:D50 rather than one cell. Adjust the code to match the range you paste into, or only D2 will toggle.
- Lock down the source list. Hide or protect the Lists sheet so users cannot break the dropdown. Review > Protect Sheet on the main sheet while leaving D2:D50 unlocked, so users can still type and pick.
Common Mistakes
- Saving as .xlsx. The macro vanishes and the dropdown reverts to single-select. Always .xlsm.
- Pasting into a standard module. Worksheet_Change only fires from a worksheet module. If your code sits in Module1, nothing happens when you click the dropdown.
- Forgetting EnableEvents. Writing back into the changed cell re-fires the event, producing duplicate commas, odd appends, or Excel seeming to hang.
- Separator collisions. If an option itself contains a comma, the parse breaks. Use a semicolon or pipe character as your separator, or strip commas from the source list.
- Watching only one cell. Users paste the dropdown down a column and half the rows do nothing, because the code checks for a single-cell address.
- Blanks inside the source range. A blank cell truncates the validation list, so options after the gap never appear.
Tips
- Trim spaces around the combined result so values do not accumulate as "Apple , Banana , Cherry".
- Tidy the display afterwards by splitting on the separator and counting items — this also catches duplicates.
- Keep the source list on its own sheet and name it; when you add options, just extend the range and check the named range covers them.
- If your organisation blocks macros, an alternative is a genuine checkbox column (Insert > Form Controls > Check Box) next to each option, then a formula such as TEXTJOIN with IF to build a comma-separated string. It is more clicks to use but needs no code.
- Document the macro in a cell comment. The next person to open the file will otherwise assume the dropdown is broken when it behaves this way on purpose.
Troubleshooting
The dropdown shows options but picking a second one replaces the first. The macro is not running. Check you saved as .xlsm, that macros are enabled for the file (check the yellow security bar at the top), and that the code is in the correct sheet's module.
Excel flickers or appends values repeatedly. EnableEvents is missing or not restored after an error. Open the VBA editor, add the line to set it back to True, and run once manually.
Picking an item twice adds it instead of removing it. Your toggle logic cannot match the text exactly — usually a trailing space or mismatched case. Trim and compare case-insensitively.
Only the first row works after copying down. Widen the watched range in the code to cover all the dropdown cells.
The file opens on another computer with no dropdown behaviour. Macros are disabled there, or the person opened it in Excel for the web. The browser cannot run VBA at all — the cell will still accept text but the toggle stops working.
If that did not work, start from a fresh .xlsm with one dropdown cell and the minimal macro, confirm that works, then scale up. Remove protection while testing; protected sheets block VBA writes and the macro fails silently.
Frequently Asked Questions
Can I do this without VBA?
Not as a true multiselect dropdown. The closest no-code option is a column of Form Control checkboxes with a formula that joins the checked labels. Excel for the web has no VBA, so that formula route is the only one that works online.
Why does my dropdown only hold one item?
Data validation by itself always replaces the cell value. The multiple values only survive because the change-event macro rewrites the cell. If the macro is gone, the behaviour reverts.
Will this work in Excel for the web or on a phone?
No. VBA does not run in the browser or in the mobile Excel app. You can open and view the file, but the toggle and append behaviour will not fire.
Can I use a semicolon instead of a comma between items?
Yes. Choose any separator the macro writes and later splits on. Pick one that never appears inside your actual option names.
Does the macro slow the workbook down?
Only while it is watching a large range. Keeping the watched range to the columns that hold dropdowns, and not the whole sheet, keeps it responsive.
Is there a risk to my data?
The macro only rewrites the cells you have told it to. Keep a copy of the file before editing macros and test on that copy, since a mis-set EnableEvents or a broad Target range can write to unexpected cells.