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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Find and replace certain words in a string

Hi everyone,

 

I have a table with 7 columns and 12000 rows contains learners' survey results. 

One of the columns contains the students' comments (string). These strings may contain one or more lecturers' name.

I am trying to create a query using M language that allows me to identify the strings with the lectures' name and replace the lecturers' name with the word "Lecturer".

Also, another table includes the list of lecturers' name (1 column, 2000 rows).

I hope it makes sense.

 

Thank you,

Ata

2 REPLIES 2
lbendlin
Esteemed Contributor III

There are many examples available for this requirement. Here's one of them: Bulk Find And Replace In Power Query | How To Excel

Anonymous
Not applicable

Thank you Ibendlin. Appreciate your response. 

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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
Users online (128)