Validating Data for Correctness during Entry

Just as you can limit the data displayed by your worksheets, you can limit the data entered into them as well. Setting validation rules for data entered into cells lets you catch many of the most common data-entry errors, such as entering values that are too small or too large or attempting to enter a word in a cell that requires a number. When you create a validation rule, you can also create a message to inform you and your colleagues what sort of data is expected for the cell.

Validate for Specific Requirements

  1. Select the cells you want to validate.

  2. On the Data tab, click the Data Validation button’s down arrow.

  3. Click Data Validation.

    Validate for Specific Requirements
  4. Click the Allow down arrow.

  5. Click the type of data you want to allow.

  6. Click the Data down arrow and click the condition for which you want to validate.

  7. Type the appropriate values in the boxes.

  8. Click the Input Message tab.

  9. Select the Show Input Message When Cell Is Selected check box.

  10. Type the message you want to appear when the cell is clicked.

  11. Click the Error Alert tab.

  12. Select the Show Error Alert After Invalid Data is Entered check box.

  13. Click the Style down arrow.

  14. Click the icon you want to appear next to your message.

  15. Type a title for the error message box.

  16. Type the error message you want.

  17. Click OK.

    Validate for Specific Requirements
    Validate for Specific Requirements

    Tip

    Tip

    If you want to highlight all of the cells in your worksheet that have validation criteria, click the Home tab on the ribbon, click Find & Select, and then click Data Validation.

Validate Data According to a List in a Worksheet Range

  1. Select the cells that you want to validate.

  2. On the Data tab, click the Data Validation button’s down arrow.

  3. Click Data Validation.

  4. Click the Settings tab.

  5. Click the Allow down arrow.

  6. Click List.

  7. Click the Source box.

  8. Select the cells that contain the values you want in your list.

  9. Click OK.

    Validate Data According to a List in a Worksheet Range
    Validate Data According to a List in a Worksheet Range

    Tip

    Tip

    In the Settings tab of the Data Validation dialog box, you can clear the In-Cell drop-down button so that a drop-down arrow does not appear next to the cell with the available options.

    Tip

    Tip

    To validate the entire workbook, hold down the Ctrl key and press the A key to select the entire workbook. Then apply the data validation criteria.

    Tip

    Tip

    If you don’t want to display the list items in your workbook, you can type them out in the dialog box. Be sure to separate the items with commas (,).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.15.161