Forum Discussion
jberlin
Jan 03, 2020Copper Contributor
Request For If Then Function Help
Hello, I would like to do an IF function to add a "yes" or "no" column based on if a cell's text matches the text on another sheet.
This is what I have right now: IF($A2=Sheet2!A:A,"yes","no"). The formula is only producing yes - can you identify my error?
Thank you!
3 Replies
- SergeiBaklanDiamond Contributor
If yes in case if A2 is equal to any cell in Sheet2!A:A, when
=IF(COUNTIF(Sheet2!A:A,A2),"yes","no")- jberlinCopper Contributor
SergeiBaklanthank you so much for your help -it worked!
- SergeiBaklanDiamond Contributor
jberlin , you are welcome