Associate a word with a number formula in Excel

Copper Contributor

Hi, I am trying to create a formula wherein if someone enters "YES", it is associated with the number "1". If they enter "NO", then "0". 

1 Reply

It could be like

=--(A1="Yes")

if assume you have only Yes or No