I want to compare two cells but with a partial match
e,g
A B C
1
2 John :smith John :doe IF( A2 = B2 , 1,0)
3
but i only wana compare the "john".. i dont want it to compare the ":xxx" part. How can this be done ?
Thanks
I want to compare two cells but with a partial match
e,g
A B C
1
2 John :smith John :doe IF( A2 = B2 , 1,0)
3
but i only wana compare the "john".. i dont want it to compare the ":xxx" part. How can this be done ?
Thanks
Perhaps:
=IF(TRIM(LEFT(A2,FIND(":",A2)-1))=TRIM(LEFT(B2,FIND(":",B2)-1)),1,0)
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks