Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Insert and Customize Sparklines in Excel
  • How to create dynamic reference table name in Excel
  • How to add Trendline to a chart in Excel
  • How to Create Thermometer Chart in Excel
  • Remove Duplicates Example in Excel

References

  • How to use Excel MATCH Function
  • How to use Excel TRANSPOSE Function
  • How to get last row in numeric data in Excel
  • To count total rows in a range in Excel
  • Extract all partial matches in Excel

Data Validations

  • Excel Data validation allow uppercase only
  • Excel Data validation only dates between
  • Excel Data validation must contain specific text
  • Excel Data validation date in specific year
  • Excel Data validation unique values only

Excel Data validation with conditional list

by

How to create a drop-down and multiple dependent drop-down lists.in Excel

To allow a user to switch between two or more lists, you can use the IF function to test for a value and conditionally return a list of values based on the result.

Formula

=IF(A1="See full list",long_list,short_list)

Explanation

In the example shown above, the data validation applied to C4 is:

=IF(C4="See full list",long_list,short_list)

This allows a user to select a city from a short list of options by default, but also provides an easy way to view and select a city from a longer list of cities.

Worked Example:   Calculate number of hours between two times in Excel

How this formula works

Data validation rules are triggered when a user adds or changes a cell value. This formula takes advantage of this behavior to provide a clever way for the user to switch between a short list of cities and a longer list of cities.

In this formula, the IF function is configured to test the value in cell C4. When C4 is empty or contains any value except “See full list”, the user sees a short list of cities, provided in the named range short_list (E6:E13):

Worked Example:   Highlight row and column intersection exact match in Excel

If the value in C4 is “See full list”, the user sees the long list of cities, provided in the named range long_list (G6:G35):

The named ranges used in the formula are not required, but they make the formula a lot easier to read and understand. If you are new to named ranges, this page provides a good overview.

Worked Example:   Excel If, Nested If, And/Or Criteria Examples

Dependent dropdown lists

Expanding on the example above, you can create multiple dependent dropdown lists. For example, a user selects an item type of “fruit”, so they next see a list of fruits to select. If they first select “vegetable” they then see a list of vegetables.

 

 

 

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

How to Create Gantt Chart in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to use Excel OR Function
  • IF, AND, OR and NOT Functions Examples in Excel
  • IF with wildcards in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get last day of month in Excel
  • How to get same date next year or previous year in Excel
  • Get date from day number in Excel
  • TODAY function: Description, Usage, Syntax, Examples and Explanation
  • Next biweekly payday from date in Excel

Grouping

  • If cell contains one of many things in Excel
  • Group times into 3 hour buckets in Excel
  • How to randomly assign data to groups in Excel
  • Group times into unequal buckets in Excel
  • Map inputs to arbitrary values in Excel

General

  • Count cells that do not contain errors in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • Using Existing Templates in Excel
  • Print Excel Sheet In Landscape Or Portrait
  • Freeze and Unfreeze Panes in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning