+ Reply to Thread
Results 1 to 6 of 6

how to use match function or count if function to match two columns of text.

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    9

    Talking how to use match function or count if function to match two columns of text.

    I am looking to match text in column B to all of the text in column A to see if any of the words are repeated, I would also like it to match similar words for example if Apples is is column B and Apple is in column A. If they are repeated I would like to easily see where the repeated word is either by highlighting each repeated word in a different color or reporting a value in Column C in the adjacent row. Thanks in advance!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: how to use match function or count if function to match two columns of text.

    sounds like you need to use conditional formatting. cant say what the formula woyuld look like tho, until i can see a sample of your data

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: how to use match function or count if function to match two columns of text.

    Here is an example of the spreadsheet. Thank you!
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: how to use match function or count if function to match two columns of text.

    highlight the range in column B, then go into conditional formatting - new rule - use formula, enter/copy this =COUNTIF($A$2:$A$127,B2)>0. apply formatting and enter out
    this will highlight all identical matches.

    the following formula in C will pick out identical matched from B to A
    =IF(COUNTIF($A$2:$A$127,B2)>$C$1,COUNTIF($A$2:$A$127,B2),"")

    i am working on similar matches apple=apples
    can you give me any more examples?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: how to use match function or count if function to match two columns of text.

    for the "similar" matches, try this in CF...
    =ISNUMBER(IFERROR(MATCH(B2&"*",$A$1:$A$127,0),MATCH("*"&B2,$A$1:$A$127,0)))

    or if you just want it in C,
    =IFERROR(IFERROR(MATCH(B2&"*",$A$1:$A$127,0),MATCH("*"&B2,$A$1:$A$127,0)),"")

    this will match similar items in A that are in B

  6. #6
    Registered User
    Join Date
    10-25-2012
    Location
    new york
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: how to use match function or count if function to match two columns of text.

    Thank you for your response. It was very helpful. However, the formula only reports location of the first match in column C. Is there a way to alter the formula, so that it reports the row
    of multiple matches of the same word? For example if Apple is in row 51 and 25, those row
    numbers are displayed in column C?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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