+ Reply to Thread
Results 1 to 2 of 2

Compare two cells (Partial Match)

  1. #1
    Forum Contributor
    Join Date
    05-26-2008
    Posts
    122

    Compare two cells (Partial Match)

    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

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1