|Data Validation will do what you want.|
First you need to make a list of valid numbers.
In cells B1 thru B3 enter numbers 1700, 1800, 1900
Go to cell A1 and Click DATA on the Task Bar (Ribbon)
Click Data Validation (Right Center on ribbon)
In the Allow: window, you need to change the Allow Any
click the small arrow and select List
In the Source window select cells B1 thru B3
Now in cell A1 try to enter a number that is not in your list and you get an error message.
You can also modify the error message and create your own by selecting the tabs at the top of the Data Validation window.