Does the cell have a dropdown arrow when you click in it? If so, then only the values in the dropdown are valid.
If no dropdown arrow then try the following.
Click on the cell.
Select Data ribbon.
Select Data validation -> Data validation.
Check what validation has been set for the cell.