Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jkallea
New Member

Finding Matches in columns

Hi,

 

I am trying to locate the names that match in two different columns. I have tried to locate the matches muiltiple ways but always got nothing. I know there is matches beacuse I found some though Excel. I need to know which names are in both columns. Below is a few of the rows and the set up of my data. I tried adding a conditional column that stated "If (Account Name) equals (Account Name -) then Match" but didnt get any results. PLEASE HELP! I have been trying for a while now. Untitled.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Working with comparing text is often tricky and you need to figure out what contraints you want to apply to your search.

 

For Example, a computer will consider "Bob" to be different to "bob".

It will consider "Bob " to be different to "Bob"

It will consider "Bob Smith" to be different to "Bob".

 

Since you know your data, what search contraints are you expecting to use?  Making use of TRIM and UPPER inside your formula will allow you to get around the first 2 examples in my list.  The SEARCH function will also help with the third, but is only useful if you know which column is going to be found consistantly inside the other column.

 

You should also expect that you will never get 100% accuracy, especially if this text is created by users typing into fields in your source system.  Typos will always fall through the cracks.  You will also likely find scenarios where you get false positivies because a short name is happened to coincedently exist in a much larger string of text.  I.e. "Bob" inside "Michael Bobsled"

 

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

Share a dataset which can be pasted into MS Excel and for a few sample rows, please also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Working with comparing text is often tricky and you need to figure out what contraints you want to apply to your search.

 

For Example, a computer will consider "Bob" to be different to "bob".

It will consider "Bob " to be different to "Bob"

It will consider "Bob Smith" to be different to "Bob".

 

Since you know your data, what search contraints are you expecting to use?  Making use of TRIM and UPPER inside your formula will allow you to get around the first 2 examples in my list.  The SEARCH function will also help with the third, but is only useful if you know which column is going to be found consistantly inside the other column.

 

You should also expect that you will never get 100% accuracy, especially if this text is created by users typing into fields in your source system.  Typos will always fall through the cracks.  You will also likely find scenarios where you get false positivies because a short name is happened to coincedently exist in a much larger string of text.  I.e. "Bob" inside "Michael Bobsled"

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors