Dependent Combo Box in Excel

You can add a drop down list in a worksheet cell, so people can select from a list of valid entries. The font in that list is pretty small though, even if the worksheet is at 100% zoom. And good luck trying to read it, if you go to a lower zoom setting! My eyes aren’t that good, so I use a pop-up combo box, in some workbooks, to make the list easier to use.

Combo Box Advantages

On the worksheet, there’s only one combo box, and it pops up when you click or double-click a cell that has a data validation drop down list.

datavalcomboclick01

There are a few benefits to using combo boxes:

  • You can change the font size, so the text is big enough to read
  • You can change the number of visible items, to reduce the amount of scrolling that’s needed
  • When you start typing, the matching item is filled in (autocomplete)

Combo Box Disadvantages

Of course, there are some disadvantages too, so keep those in mind if you decide to use a combo box popup

  • This technique uses programming, and wipes out Excel’s Undo list, like most macros do
  • The single-click option for the code runs every time you select a different cell on the worksheet, so that could slow down a large workbook
  • The combo boxes are ActiveX controls, so they won’t work in Excel for the Mac

Dependent Combo Boxes

The previous sample files that I’ve uploaded were designed to work with a simple list of items on the same sheet, or a list in a named range on any sheet. They didn’t work with a dependent list though, such as a list of cities based on the region selected in a different cell.

In the screen shot below, column C has data validation that uses a simple INDIRECT formula, =INDIRECT(B3),

If you tried the combo box with that type of data validation list, it just showed an empty list. So sad!

datavalcombodepend01

New and Improved Dependent Combo Box

To prevent the heartbreak of empty combo box lists, I finally uploaded a new combo box sample file. It doesn’t handle fancy formulas, but at least is shows a drop down list if a cell has a simple INDIRECT formula.

datavalcombodepend02

Download the Dependent Combo Box File

You can learn more about the Dependent Combo Box on my website, and download the sample file.

____________________

One thought on “Dependent Combo Box in Excel”

  1. I have a table in Sheet named A b s t. Range A Q 2 4 to A R 4 7

    Similar to Following Table:-

    …. A Q ……..AR

    24…Blank….Blank

    25…A……….B

    26…C……….D

    27…E……….F

    etc. All Values are Text.

    In column I & J I have multi select boxes. In Column ” I ” Drop Down List from Table A Q 24 to A Q 47 While in Column ” J ” from table AR 24 to AR 47. These boxes give comma separated values.

    I want in column J to select corresponding automatic comma separated values as per the table. Such as in above example:-

    If I select In column” I ” A,C,E
    The column ” J ” should give B,D,F automatically

    If I select A,C then J column automatically should give B,D

    Can you suggest me the proper code ?

    Thank you.

    Prakash Kulkarni

Leave a Reply to Anonymous Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.