View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stephen[_2_] Stephen[_2_] is offline
external usenet poster
 
Posts: 364
Default How do you restrict a cell to accepting only "Y" or "N" ?

Select the cell (say,A1):
Data Validation
Allow:
select Custom
Formula:
=(OR(A1="Y",A1="N"))

"NickR2" wrote in message
...
We need to format a cell so that it will only accept a "Y" for yes, or a
"N"
for no.
How can this be done?

Thank you