Finding Partial Match in Two Different Columns in Excel

Anonymous
2020-07-03T13:47:55+00:00

I need to find a partial match in two different columns in excel, then highlight the values. Once the values are highlighted I need to be able to filter the results. If you use conditional formatting, highlight duplicate value rule it only captures exact matches. As you can see some of my values have a "-" in them and using the conditional formatting it doesn't highlight those values.

The two column I need compared are A and F, values won't match by row. I could have a 361569 (A61) in column F in a totally different row.

Anyone have any ideas how to do this?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Anonymous
    2020-07-03T13:58:07+00:00

    A COUNTIF/COUNTIFS with a wildcard seems the logical solution.

    =COUNTIF(F:F, A1&"*")

    Is there something I'm not recognizing that makes that impractical?

    1 person found this answer helpful.
    0 comments No comments
  2. Andreas Killer 144K Reputation points Volunteer Moderator
    2020-07-03T13:58:09+00:00

    Apply

    H1:  =COUNTIF(F:F,F1)+COUNTIF(F:F,F1&"*")

    and drag down.

    You are interested in all rows with values > 1.

    If you apply

    I1:  =F1&IF(ISERROR(FIND("-",F1)),"-00","")

    and drag down, you can sort the data by this column and get the matching rows below each other.

    Andreas.

    0 comments No comments
  3. Anonymous
    2020-07-03T14:05:33+00:00

    I need to compare the values by columns, not by row. I want to find the values in column A and column F that have the first 6 digits matched then highlighted. Does that make sense?

    0 comments No comments
  4. Anonymous
    2020-07-03T14:09:13+00:00

    Fill couple of answers against the matching/non-matching values in the rightmost column. Press Ctrl+E (flashfill), excel will give results against rest of comparisions. Once you have results, conditional matching can be done easily

    0 comments No comments
  5. Andreas Killer 144K Reputation points Volunteer Moderator
    2020-07-03T14:11:37+00:00

    I need to compare the values by columns, not by row. I want to find the values in column A and column F that have the first 6 digits matched then highlighted. Does that make sense?

    Same formulas as I've posted, just replace F1 with A1.

    Andreas.

    0 comments No comments