Excel Basics: How to add drop down list to validate data

Share

Facebook
Twitter
LinkedIn
Excel Dropdown lists - demo

Validating your data as you type can prevent any surprises when you are doing analysis / follow-up on the data. Thankfully, excel has the right tools to do it. Excel drop down list can assist you in picking up a value from a valid list to enter in a cell. Here is a short how-to guide to get you started on data validation in excel.

Howto set up Drop Down list in Excel?

  1. First, set up a list of valid values in range of cells. Say your valid list of entries is in A1:A6.
  2. Now go the cell where you want to validation drop down to appear.
  3. Go to Data ribbon and click on Validation
  4. Set up “List” as allowed values and enter =A1:A6 as Source (see below picture)
  5. Done. Now you can see the drop-down in your cell.
Excel Data Validation - Drop-down settings
Data Validation Settings

Video – How to create Drop Down List in Excel & Best Practice Tips

I made a video with a real world example of drop down lists. Please watch it below to understand the set up process & how to customize the validation rules.

Sample workbook to Practice Data Validation Drop Downs

Click here to download the sample workbook to practice data validation drop down lists.

How-to ignore duplicates while setting up validation list?

If you want to use a source list that has duplicates and want to ignore them when setting up validation drop-down, then you have two options. Something like this:

drop-down in Excel without duplicates
Data Validation drop-down without duplicates
  1. Use Excel Dynamic Arrays (works in Excel 365)
  2. Use Pivot Tables (works in all versions of Excel)

Let’s say your list of inputs is in customers[Education] column.

Using Dynamic Arrays

Note: This works only in Excel 365 with dynamic array feature. Not all 365 users will have access to DA now, but everyone of them will get Dynamic Arrays soon.

Just go to an empty cell (preferably in a separate worksheet like settings tab) and type =SORT(UNIQUE(customers[Education]))

Excel will spill your data down to next few cells depending on how many unique values are in your data.

Let’s say your formula is in cell A1

Now, go to Formulas > Define Name and create a name for validation options as,

Dynamic array approach to get drop-down list without duplicates
Use # to tell Excel you want the entire spill range for the name

Finally, use myOptions as list source for data validation.

Using Pivot Tables for drop down without duplicates

This is most compatible option as it works in all versions of Excel.

  1. In a new sheet or blank range, insert a pivot table from your data.
  2. Add the Education field to row labels area
  3. Remove any grand, sub-totals
  4. Let’s say the first item in the pivot is in cell A2.
Pivot table method for creating data validation dropdown without duplicates
Pivot table with list of education values

Now, create a name with myOptions and use the formula

=OFFSET($A$2,0,0, COUNTA($A$2:$A$21), 1)

this will make a dynamic named range with how many ever education options are there in that pivot table.

Note: Change $A$21 to a cell address further down if you will have more options.

Finally, use myOptions as the list source for data validation.

Your drop-down list without duplicates will be ready.

Drop-down list without duplicates – Video

I made a video explaining how to make dropdowns without duplicate values. You can see a cameo from Nishanth (my son) in the video. Check it out if you want to understand how Dynamic Array method and Pivot Table method can be setup. Watch it below or visit my YouTube Channel.

Best Practice for Drop-downs

Drop-downs are very useful for data analysis, charting and reporting work. They are user friendly and easy to set up. That said, keep these ideas in mind when implementing them.

  • Use named ranges: Instead of hard-coding cell addresses, use named ranges for setting up validation lists. This will also enable you to connect data validation list to table columns thru structural references.
  • Source lists in a separate tab: Whenever possible, set up all your source lists in a separate tab. I call mine “Settings”. This will make any changes easy for you.
  • Don’t have too many options: If your drop-down is having more than 50 options, consider two-level cascading drop-downs or some other way to gather inputs.
  • Try Form controls or Slicers too: Drop-downs are great, but they are just one of the many ways to add interactive abilities to your workbooks. Consider form controls and Slicers too.

Download Practice Workbook

I made a workbook with simple and “avoiding duplicates” examples. Please download it here and practice to learn more about these techniques.

More Data Validation Tricks

Here is a collection of useful tricks and ideas with Data Validation. Check them out to learn more.

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

11 Responses to “Fix Incorrect Percentages with this Paste-Special Trick”

  1. Martin says:

    I've just taught yesterday to a colleague of mine how to convert amounts in local currency into another by pasting special the ROE.

    great thing to know !!!

  2. Tony Rose says:

    Chandoo - this is such a great trick and helps save time. If you don't use this shortcut, you have to take can create a formula where =(ref cell /100), copy that all the way down, covert it to a percentage and then copy/paste values to the original column. This does it all much faster. Nice job!

  3. Jody Gates says:

    I was just asking peers yesterday if anyone know if an easy way to do this, I've been editing each cell and adding a % manually vs setting the cell to Percentage for months and just finally reached my wits end. What perfect timing! Thanks, great tip!

  4. Jon S says:

    If it's just appearance you care about, another alternative is to use this custom number format:
    0"%"

    By adding the percent sign in quotes, it gets treated as text and won't do what you warned about here: "You can not just format the cells to % format either, excel shows 23 as 2300% then."

    • Steven Peters says:

      Dear Jon S. You are the reason I love the internet. 3 year old comments making my life easier.

      Thank you.

  5. Jon Peltier says:

    Here is a quicker protocol.

    Enter 10000% into the extra cell, copy this cell, select the range you need to convert to percentages, and use paste special > divide. Since the Paste > All option is selected, it not only divides by 10000% (i.e. 100), it also applies the % format to the cells being pasted on.

  6. Chandoo says:

    @Martin: That is another very good use of Divide / Multiply operations.

    @Tony, @Jody: Thank you 🙂

    @Jon S: Good one...

    @Jon... now why didnt I think of that.. Excellent

  7. sajith says:

    Thank You so much. it is really helped me.

  8. Winnie says:

    Big help...Thanks

  9. Chris Fry says:

    Thanks. That really saved me a lot of time!

  10. Texas says:

    Is Show Formulas is turned on in the Formula Ribbon, it will stay in decimal form until that is turned off. Drove me batty for an hour until I just figured it out.

Leave a Reply