To create a custom error message in Excel with data validation, try these steps:
- Select the cell you want to add a data validation rule to.
- Go to the Data tab and select Data Validation from the Data Tools group.
- Choose a data validation option from the Allow dropdown and add any additional settings you want.
- Check the box next to Show error alert.
- Choose an error style from the Style dropdown.
- Set the title and message of the error alert.
- Click OK.