Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Limiting Choices in a Cell.
Written by Allen Wyatt (last updated July 31, 2021)
This tip applies to Excel 97, 2000, 2002, and 2003
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 (2943) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Limiting Choices in a Cell.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
Need to concatenate the contents in a number of columns so that it appears in a single column? Excel has no intrinsic way ...
Discover MoreInsert a symbol into a cell, and it should stay there, right? What if the symbol changes to another character, such as a ...
Discover MoreWhen entering data in a worksheet, you may only want to add information to the cells in a particular range. You can ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments