Inside The Web
    Facebook Twitter Instagram
    Inside The Web
    • Office
      • Excel
      • Ms Word
      • OneDrive
      • Google Docs
      • Google Sheets
      • Google Drive
    • Email
      • Gmail
      • Outlook
      • Emal Etiquette
    • Office Etiquette
    • Productivity
    Inside The Web
    Home»Office»Excel»How to Multi-Select Dropdown in Excel (Step-by-Step Guide)

    How to Multi-Select Dropdown in Excel (Step-by-Step Guide)

    Jabin ManandharBy Jabin ManandharJuly 6, 2023 Excel 2 Mins Read

    Normally, a dropdown list in Excel only lets the user select one of its options at a time. However, sometimes we might need to select and display multiple options from the list.

    For instance, a dropdown list could contain values like table tennis, chess, basketball, football, etc. Now, if the user wants to take part in multiple sports, the dropdown needs to accept more than one value.

    While Excel doesn’t provide an option to create such dropdown lists, a built-in tool like VBA can help us customize them to our preferences.

    Here’s a step-by-step process to create and enforce VBA to the dropdown list.

    Step 1: Make a Dropdown List

    1. Select the cell (s) where you want to have the dropdown list.
    2. Click Data Validation under the Data tab.
      Data-validation
    3. Select the Settings tab.
    4. Choose the List option under Allow and enable the In-cell dropdown checkbox.
      Dropdown-list-Settings
    5. Enter the cell reference or named range of the list options under the Source field. Alternatively, you can also enter a named range.
      Dropdown-list-source
    6. Click OK.

    Step 2: Insert the VBA Code

    1. Right-click the worksheet containing the above dropdown list and select View Code.
      View-code
    2. Select Worksheet in the main window and paste the following VBA code.
    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim cellRange As Range
        Dim value1 As String
        Dim value2 As String
        If Target.Count > 1 Then Exit Sub
        On Error Resume Next
        Set cellRange = Cells.SpecialCells(xlCellTypeAllValidation)
        If cellRange Is Nothing Then Exit Sub
        Application.EnableEvents = False
        If Not Application.Intersect(Target, cellRange) Is Nothing Then
            value2 = Target.Value
            Application.Undo
            value1 = Target.Value
            Target.Value = value2
            If value1 <> "" Then
                If value2 <> "" Then
                    If value1 = value2 Or _
                       InStr(1, value1, ", " & value2) Or _
                       InStr(1, value1, value2 & ",") Then
                        Target.Value = value1
                    Else
                        Target.Value = value1 & ", " & value2
                    End If
                End If
            End If
        End If
        Application.EnableEvents = True
    End Sub
    Note: The above code prevents entering duplicate values. So, while you can select multiple items, you can only select each of them once.

    Step 3: Save the File

    1. Once you add the VBA code, save the VBA window.Save-VBA
    2. Also, make sure you select the Excel Macro-Enabled Workbook (xlsm) while saving the workbook.
    3. Save-Excel-workbook
    Excel Basics
    Jabin Manandhar

      As a tech content writer, Jabin covers Excel-related articles at InsideTheWeb. His articles mainly involve helping new users to quickly familiarize themselves with the Excel interface and explaining various essential features. While he got introduced to Excel in his early school days, he developed a keen interest in it after working on a college project. He was impressed at how quickly one could accomplish several tasks with built-in functions like the filter function and user-friendly tools like the power query. Keeping beginner audiences in mind, he loves to explain even the most fundamental Excel concepts in detail and break down complex topics with a step-by-step approach. As an avid Excel user, he believes every task can be done a lot quicker if you know the right tools and techniques. When he’s not behind a keyboard, he loves to listen to interesting audiobooks and podcasts.

      Related Posts

      Excel By Nisha Gurung

      How to Compare Two Columns in Excel Using VLOOKUP

      Excel By Nisha Gurung

      How to Share Excel Files with Multiple Users

      Excel By Nisha Gurung

      How to Filter Based on a List in Excel

      Add A Comment
      Table of ContentsToggle Table of ContentToggle
      • Step 1: Make a Dropdown List
      • Step 2: Insert the VBA Code
        • Step 3: Save the File
      • Home
      • About Us
      • Privacy Policy
      © 2025 Inside The Web

      Type above and press Enter to search. Press Esc to cancel.