Column A, Column B and Column C have some numbers. I want to test if values of either A or B are present in C. If yes, then display yes, else no. Please let me know an easy excel formula for this
Thank you Ben but I am unable to get the correct answer still. A and B have receipt numbers. C also has a receipt number. I want to check if either A or B are present in C. If either A or B is present, then show yes. Otherwise No. Have been getting really crazy over this for a few days.
– Rra
Can I share the file with you somehow? Thanks a lot for your help
– Rra
I have added a screenshot. hope it is better now.
– Rra
=IF(COUNTIF(P:P,X2)+COUNTIF(P:P,Y2)>0,"yes","no"). Or maybe =IF(COUNTIF(P:P,"*"&X2&"*")+COUNTIF(P:P,"*"&Y2&"*")>0,"yes","no")
– BigBen
1 Answers
0
votes
You can achieve it by doing using the formula below
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
=IF(COUNTIF(P:P,X2)+COUNTIF(P:P,Y2)>0,"yes","no")
. Or maybe=IF(COUNTIF(P:P,"*"&X2&"*")+COUNTIF(P:P,"*"&Y2&"*")>0,"yes","no")
– BigBen