May 10th in Functions by Excelbud .

Data Validation – Dependent Lists

This tutorial will show you how to create a dependent list on Excel. This technique is extremely useful when categorizing data. In the example below, the user will select the State in cell A3. Cell B3 (City) will pull a city based off of the users selection.

Excelbud

Owner and site operator for Excelbuddy.com

This tutorial will show you how to create a dependent list on Excel. This technique is extremely useful when categorizing data. In the example below, the user will select the State in cell A3. Cell B3 (City) will pull a city based off of the users selection.

  1. Start with a list of categories. I chose to use State and cities for this demonstration.

    Validation List used to categorize data.

  2. In order to set up our validation list, we need to define names for each series. To begin, select cells D3-D5. Right above column A, type “State” and hit enter.

    list2

  3. Continue to define names for Ohio, Michigan, and Illinois. Highlight cells E3-E5 and type “Ohio” about column “A.”

    Continue to Name all columns.

  4. Once the columns are defined, we can now create our dependent validation list. Click on Cell A3.
  5. Click Data -> Data Validation ->Data Validation…
  6. Once the Data Validation box is displayed, click the down arrow and select “List.”

    data_validate-box

  7. Now it’s time to select the source data. The source data selected here will show “=State” but will be cells D3-D5.

    Source Data List

  8. Now we have a state list generated. Make sure your list is working correctly before moving to the next step.

    State drop-down list.

  9. Now comes the good stuff! Click on cell B3.
  10. Just like before, Click Data -> Data Validation ->Data Validation…
  11. Once the Data Validation box is displayed, click the down arrow and select “List.”
  12. Instead of clicking on the source button, type =INDIRECT(A3)

    =INDIRECT(A3)

  13. The INDIRECT function will take the selection in A3 and compare the names we defined earlier in B3.
  14. If you receive an error message stating “The Source currently evaluates do an error.” Click YES.

    final

  15. Please feel free to comment if you have any questions.

Tutorials Files:

data_validation

data_validation_97-2003

Updated Tutorial – 11/24/2009

Creating a Dependent List for two-word items

The question has been asked how to make a dependent list when the primary choice is more than one word.

In the example below, “Buckeye Nation” is the two letter state.  I realize this is not a State, but name a US State that has two words.

Next, create the supporting list using a one word title.  Instead of writing “Buckeye Nation” use “BuckeyeNation.”  This is shown in Column G

dependent-updated

Now, follow Step 2 above to Define the list for cells G3-G4.   Make sure you use a one word title eg. “BuckeyeNation”

In order to remove the space, we must utilize the formula below.  Before this question was asked by visitors of Excelbuddy.com, I was unfamiliar myself on how this could be done.  However, I did a Google search and was able to find a solution.

=INDIRECT(SUBSTITUTE(A2,” “,”"))

2-update

The files are available for download.

Dowload file for Excel 97-2003

Download file for Excel 2007

14 Comments

  • Bob
    May 11, 2009
  • YOUNUS
    August 13, 2009
  • Excelbud
    August 13, 2009
  • Shaun
    September 8, 2009
  • Excelbud
    September 8, 2009
  • Michael George
    November 24, 2009
  • Michael George
    November 24, 2009
  • Michael George
    November 24, 2009
  • Excelbud
    November 24, 2009
  • Martyn Cotmore
    December 7, 2009
  • Excelbud
    December 8, 2009
  • melvin
    February 14, 2010
  • iwan
    July 7, 2010
  • Excelbud
    July 7, 2010

Leave A Comment.