+ Reply to Thread
Results 1 to 6 of 6

Match text in two columns with criteria list

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    76

    Match text in two columns with criteria list

    Hello,
    I would like some help with a formula.
    There are two columns (Col A and Col B) with text in each, and I also have an additional 2 columns (Col E and Col F) with criteria text.
    I need the formula to check if the two separate text entries in Col A and Col B columns match the text in adjacent criteria columns (Col E and Col F), and if so, place a 1 in Col C, if not, 0 in Col C.
    Attached an example spreadsheet to hopefully explain things are little more clearly.

    Thanks in advance for your assistance!
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match text in two columns with criteria list

    In C2 Cell


    =COUNTIFS($E$2:$E$5,A2,$F$2:$F$5,B2)


    Drag it down..


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,414

    Re: Match text in two columns with criteria list

    An alternative......longer one...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    in C2 and copied down.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Match text in two columns with criteria list

    Another formula for C2 is:

    =SUMPRODUCT(($E$2:$E$5=A2)*($F$2:$F$5=B2))

    and pull it down to C15.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    07-10-2012
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Match text in two columns with criteria list

    Excellent, thank you for these solutions.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,414

    Re: Match text in two columns with criteria list

    And thanks for the rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Index/Match but the second match criteria >0 regarding 3 columns
    By Ben2487 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-29-2014, 12:08 PM
  2. Replies: 0
    Last Post: 11-16-2012, 11:42 AM
  3. Replies: 1
    Last Post: 09-05-2012, 11:39 AM
  4. [SOLVED] Match text in 2 columns, if true output adjacent cell to the match.
    By kenoboy in forum Excel General
    Replies: 3
    Last Post: 07-03-2012, 09:52 AM
  5. Help!! Match Two Columns with different criteria
    By trent172 in forum Excel General
    Replies: 1
    Last Post: 06-09-2012, 01:58 AM

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