How to create a drop down list in Excel?

Excel allows you to create a drop down list for limiting the values of a column to certain predefined ones. This is considered Data Validation. In this article, I will teach you how to do this. I am using the free version of Office 365 Excel for this example, but other versions will work just the same. I am also using the Student Information Dataset from Kaggle for this example.

Let us say that we want to limit the values in the “Department” column to the values “Physics,” “Chemistry,” “Biology,” “Mathematics” and “Computer Science.” In order to achieve this, first select the Department column. Then, go to the “Data” tab in the ribbon and select “Data Validation.”

Department Data Validation

A pop-up box will appear that lets you limit the data in this column to only specific values. In this case, choose “Allow: List” and put the values, separate by commas, in the “Source” field. We can also select to allow or disallow blank values.

Data Validation List

Clicking on “Apply” adds this Data Validation to the column. In a case of a List, a drop down appears in each cell, allowing us to only pick one of the predefined values. Excel will not allow you to enter any other values.

Excel Drop Down

Data Validation can also be used to limit cells to numerical values. Let us add Data Validation to the GPA field so only values between 0.0 and 4.0 can be input into the cells in the GPA column. To achieve this, we select the GPA column, then click on “Data Validation” again.

GPA Data Validation

This time, “Allow: Decimal” values between 0.0 to 4.0.

Decimal Data Validation

Now, Excel will not allow you to input values into cells of the GPA column that are not in the range [0.0 – 4.0]. If you try to input a value not within this range, an error will be shown.

Error Alert

If you do not like the default error, you may also set a custom error message in the “Error Alert” tab of the “Data Validation” pop-up.

Custom Error Altert

Leave a Reply

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

I’m CJ

Welcome to my blog; my corner of the internet dedicated to all things in Data Analysis. Here, I post how-to articles on using different tools for Data Analysis tasks. Let’s find some insight in data!

Let’s connect