Limit the data Excel will accept.Q. I often have to create a weekly job-assignment list. We have 59 employees eligible for the assignments, and I must be careful to use every name only once. Is there some Excel tool that can help me? A. The solution is to use Excel's Validation tool. Once you set it up, which takes only a few minutes, you can reuse it every week. Begin by placing all the names All the Names (Portuguese: Todos os nomes) is a novel by Portuguese author José Saramago. It was written in 1997 and published in English in 2000 in an award winning translation by Margaret Jull Costa. in a worksheet; for this example I'll use 10 names. Give the list a defined name such as Valid-Names; to do that, highlight the list and place your cursor (1) The symbol used to point to some element on screen. On Windows, Mac and other graphics-based screens, it is also called a "pointer," and it changes shape as it is moved with the mouse into different areas of the application. in the Name Box, which is in the upper left corner of the Excel screen shown at right: Now highlight the cells where you will enter the selected names, providing just enough space to eventually hold the entire list. Since there are 10 names, let's select ceils A1:A10. Click on Data and Validation to bring up the Data Validation In computer science, data validation is the process of ensuring that a program operates on clean, correct and useful data. It uses routines, often called validation rules, that check for correctness or meaningfulness of data that are input to the system. dialog box A movable window that is displayed on screen in response to the user selecting a menu option. It provides the current status and available options for a particular feature in the program. . Click on the Settings tab, and in the Allow drop-down list drop-down list - pull-down list , select Custom. Then, in the Formula box, enter this: =AND(COUNTIF(ValidNames,A1)=1,COUNTIF($A$1:$A$10,A1)=1) Now click on OK. To test the formula, try entering Tony's name twice. You should get the message at right: |
|
||||||||||||||||

Printer friendly
Cite/link
Email
Feedback
Reader Opinion