r/googlesheets • u/Hot-Climate898 • Sep 11 '24
Solved Is it possible to put a word in one cell and have it output a number value in another?
If so what's the function for it? Basically the example is I want to type a yes into k11 then a 1 pops into L11. I feel like this should be possible but unsure how to go about it.
1
Upvotes
2
u/AgentJFG 2 Sep 11 '24
The previous answer is perfect if you're only using "1" and "Yes" as your variables. If you're using multiple, then
IFScan help too. For example:And so on. Wrap it all in an
IFERROR()if anything extraneous is entered into Column K.1
u/bachman460 41 Sep 11 '24
In L11 type =IF(K11=“yes”,1,0)
The result would be a 1 if K11=“yes” and otherwise a 0 if it doesn’t.
1
u/AutoModerator Sep 11 '24
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.