Forum Discussion
DaceC335
May 17, 2024Copper Contributor
text coding to number
Hello,
i have a lot of similar text (like yes and no) and each yes i would like to code with number 1, and no with number 2. Could you help me please?
9 Replies
- Martin_AngostoIron Contributor
Something like creating a column next to these texts and generate 1 if "yes" and 2 if "no"?
Assuming your text range is from A1:A50:
On B1 type =IFERROR(IFS(A1="Yes",1,A1="No",2),"")
Then fill down until B50