+ Reply to Thread
Results 1 to 3 of 3

compare two colums to two ther coulms????

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    MA
    MS-Off Ver
    Excel 2003
    Posts
    5

    compare two colums to two ther coulms????

    Hi,

    I have a spreadsheet with column A containing a "city" and B containing a zipcode

    column C has a list of Cities and d a list of zipcodes.

    I want to look at A1 and B1 and see if they match any combo in column c and d.

    example

    A B C D
    Boston 01234 New York 20034 <- Boston would be a match
    Tampa 89001 Boston 01234 <- Tampa would not be a mach not in cols C&D


    Thanks In advance'
    Joe

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: compare two colums to two ther coulms????

    Enter this formula with Ctrl + Shift + Enter and drag it down

    =IF(ISNUMBER(MATCH(C2&D2,$A$2:$A$18&$B$2:$B$18,0)),"Match", "No Match")

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: compare two colums to two ther coulms????

    =Isnumber(Match(1,Index(($C$2:$C$100=$A2)*($D$2:$D$100=$B2),0),0))

    copied down

    adjust ranges to suit.

    TRUE means match found
    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