Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Limiting Choices in a Cell.
by Allen Wyatt
(last updated February 9, 2019)
When you are developing worksheets that will be used by others, you may want to limit what your users can enter into a particular cell. For instance, you might have a cell where the user should enter their department. You would obviously want them to only enter one of the valid departments for your company.
To ensure that only certain departments can be entered in the cell, follow these steps:
Figure 1. The Settings tab of the Data Validation dialog box.
Figure 2. The Error Alert tab of the Data Validation dialog box.
That's it. Now, the user can only enter one of your valid department names. Better yet, when they select the cell, they will see a drop-down arrow at the right of the cell where they can select from the department names you specified in step 5. If they enter one that is incorrect, they will see the error message and will need to change what they entered.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8033) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. You can find a version of this tip for the older menu interface of Excel here: Limiting Choices in a Cell.
Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!
If you want to make sure that only unique values are entered in a particular column, you can use the data validation ...Discover More
Want to create an easy drop-down list? You can do so by using the data validation features of Excel.Discover More
Data Validation is a great tool in Excel for making sure that whatever is entered in a cell matches your specific ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.