+ Reply to Thread
Results 1 to 2 of 2

How-to find matching data in two columns and then comparing data next to them

  1. #1
    Registered User
    Join Date
    03-30-2012
    Location
    Montreal
    MS-Off Ver
    Excel 2003
    Posts
    1

    How-to find matching data in two columns and then comparing data next to them

    Hi, this is a little complicated for me:

    right now i use this formula :=IF(COUNTIF($C$1:$C$7000,A2),MATCH(A2,$C$1:$C$7000,0),"not found")

    the data i compare is formatted like this: 1234567890-001

    now i want to add a twist... i may have data that match partialy...example: 1234567890-001 and 1234567890-002

    so what i need is my formula to look for a match in the first part of my data (1234567890) and if there is a match then compare if the second part matches (-001 and -002)

    Is there an easy way to do that?

    Thank you!

  2. #2
    Registered User
    Join Date
    10-13-2011
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How-to find matching data in two columns and then comparing data next to them

    You can use LEFT and RIGHT functions to do this. Below is a simple formula. If you want a more exact formula, please upload a sample worksheet.

    Example:
    =IF(LEFT(A1,10)=LEFT(A2,10),IF(RIGHT(A1,4)=RIGHT(A2,4),"Match","Partial Match"),"No Match")

+ 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