目次
Background
I wanted to restrict the values entered into cells in Excel to dates only (yyyy/mm/dd), so I looked into how to do it.
Steps
Here is the procedure:
- Select the target cells.
- Click the “Data” tab on the menu bar.
- Click “Data Validation” in the “Data Tools” group.
- When the “Data Validation” dialog box opens, select the “Settings” tab.
- From the “Allow” dropdown list, select “Date”.
- Set an appropriate range for “Start date” and “End date” (e.g.,
1900/1/1to9999/12/31). - Select the “Input Message” tab and set a message if necessary (e.g., “Only dates can be entered here”).
- Select the “Error Alert” tab and set the message for when an error occurs (e.g., “Entering anything other than a date causes an error”).
- Click “OK” to save the settings.
That’s it!
I use these dates to link with my Outlook calendar for schedule management. I hope this is helpful. Thank you for reading.
