Data validation in excel

01/01/2022 0 By indiafreenotes

Select the cells you want to create a rule for.

Select Data >Data Validation

On the Settings tab, under Allow, select an option:

  • Whole Number: To restrict the cell to accept only whole numbers.
  • Decimal: To restrict the cell to accept only decimal numbers.
  • List: To pick data from the drop-down list.
  • Date: To restrict the cell to accept only date.
  • Time: To restrict the cell to accept only time.
  • Text Length: To restrict the length of the text.
  • Custom: For custom formula.

Under Data, select a condition.

Set the other required values based on what you chose for Allow and Data.

Select the Input Message tab and customize a message users will see when entering data.

Select the Show input message when cell is selected checkbox to display the message when the user selects or hovers over the selected cell(s).

Select the Error Alert tab to customize the error message and to choose a Style.

Select OK.

Now, if the user tries to enter a value that is not valid, an Error Alert appears with your customized message.