Applies To
Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web
  1. Select the cell(s) to use and choose Data and then  Data validation button Data Validation.

  2. Choose an option in the Allow drop-down menu, such as Date or whole number.

  3. Under Data, choose a condition like equal to, and values to accept. 

  4. To add a prompt, enter a title and message for your rule on the Input Message tab.

  5. Choose Error Alert to create an invalid data entry message, and select OK.

For more info, see Apply data validation to cells.

Tip: To use data validation for drop-down menus or pick lists, see Create a drop-down list.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.