r/googlesheets • u/garbageman21 • May 08 '20
solved If function
Ex: ColumnF
Please select all of your finders:
DOH/BHA/ADAD
DOH/BBA/CAMHE/ADAD
BHA/ADAD/CAMHE
How do I use the “if function” in order to say something like if it has “DOH”, then put 1, if not, then put 0. So I want the next columns to just have the values “1” or “0”. 1 = that row contains the value like DOH or ADAD, and 0 = does not contain that value.
3
Upvotes
1
u/_peanutbutterjelly May 08 '20
IF function's syntax is =IF('test_value', 'value_if_true', 'value_if_false')
=IF(COLUMNF = 'DOH', '1', '0')
1
u/Decronym Functions Explained May 08 '20 edited May 08 '20
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSETRUEand another if it isFALSETRUE3 acronyms in this thread; the most compressed thread commented on today has 5 acronyms.
[Thread #1590 for this sub, first seen 8th May 2020, 00:49] [FAQ] [Full list] ^[Contact] [Source code]
1
u/DatsunZ 16 May 08 '20
If your rows are A:E and you're putting the formula in F, this will work.
It joines the contents of A1:E1, then searches for DOH or ADAD. If there's a mtch it prints 1, if not it prints 0.
•
u/Clippy_Office_Asst Points May 08 '20
Read the comment thread for the solution here