Find All Matching Values in Same Column

dlc3172

New Member
Joined
Nov 17, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
How would I find matching values in the same column? I've attached a simple example. In this example, I would want to know that "Cat", "Mouse", and "Dog" all appear more than once in the column. Keep in mind: In reality, I don't KNOW what values are going to match. That's the purpose: I want to find all matching values in a column without knowing in advance which values will match. Thanks for the help!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Highlight the column, Click Conditional Formating, Highlight Duplicate Values
 
Upvote 0
Highlight the column, Click Conditional Formating, Highlight Duplicate Values
That only highlights cells with exactly the same content. I'm looking for cells that contains matching words, not exactly matching content.
 
Upvote 0
Are you trying to match "cat" to "CAT"? Can you provide a sample dataset and highlight the ones you would want to match?
 
Upvote 0
Are you trying to match "cat" to "CAT"? Can you provide a sample dataset and highlight the ones you would want to match?
Sorry - I just realized I forgot to attach my example file to the original post. I'm not seeing how to upload a file, so I'll post an image. Ideally, I'm looking for a text match, not case sensitive.
 

Attachments

  • ScreenHunter 1339.png
    ScreenHunter 1339.png
    5.8 KB · Views: 9
Upvote 0
Welcome to the MrExcel board!

I'm not seeing how to upload a file,
You can't, but you can provide small samples that we can use/copy from (unlike an image) with XL2BB

I would want to know that "Cat", "Mouse", and "Dog" all appear more than once in the column
I assume that you want to check whole words only. I have added 'Piglet' to the sample data and assume that you do not want 'Pig' returned in the list even though that text appears in A5 and A8 of my sample data.

Would this be any use?

23 11 18.xlsm
ABC
1ListMore than once
2Dog CatDog
3Horse Cow MouseCat
4MouseMouse
5Pig Goat
6Chicken Rooster
7Lamb Dog
8Dog Mule Cat Piglet
Match
Cell Formulas
RangeFormula
C2:C4C2=LET(u,UNIQUE(TEXTSPLIT(TEXTJOIN(" ",,A2:A8),," ")),FILTER(u,BYROW(u,LAMBDA(rw,COUNT(SEARCH(" "&rw&" "," "&A2:A8&" "))-1))))
Dynamic array formulas.
 
Upvote 0
How would I find matching values in the same column? I've attached a simple example. In this example, I would want to know that "Cat", "Mouse", and "Dog" all appear more than once in the column. Keep in mind: In reality, I don't KNOW what values are going to match. That's the purpose: I want to find all matching values in a column without knowing in advance which values will match. Thanks for the help!

Welcome to the MrExcel board!


You can't, but you can provide small samples that we can use/copy from (unlike an image) with XL2BB


I assume that you want to check whole words only. I have added 'Piglet' to the sample data and assume that you do not want 'Pig' returned in the list even though that text appears in A5 and A8 of my sample data.

Would this be any use?

23 11 18.xlsm
ABC
1ListMore than once
2Dog CatDog
3Horse Cow MouseCat
4MouseMouse
5Pig Goat
6Chicken Rooster
7Lamb Dog
8Dog Mule Cat Piglet
Match
Cell Formulas
RangeFormula
C2:C4C2=LET(u,UNIQUE(TEXTSPLIT(TEXTJOIN(" ",,A2:A8),," ")),FILTER(u,BYROW(u,LAMBDA(rw,COUNT(SEARCH(" "&rw&" "," "&A2:A8&" "))-1))))
Dynamic array formulas.
Yes, whole words only. But where do I paste that formula? I'm not getting any results when I try to use it.
 

Attachments

  • ScreenHunter 1339.png
    ScreenHunter 1339.png
    5.8 KB · Views: 3
Upvote 0
But where do I paste that formula?
You can put the formula in any cell you want.
However, to test the concept ..
  1. Start a fresh (blank) worksheet
  2. Click this icon in post #6 above
    1700351498924.png


  3. Select cell A1 in the blank worksheet
  4. Paste
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,035
Members
449,092
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top