web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to find and replac...
Power Apps
Answered

How to find and replace in a column using the contents of another column as the Find value

(0) ShareShare
ReportReport
Posted on by

I have an Application column which includes both the application name and version, and a Version column.  Since there is already a Version column, I want to remove the version appended in the Application column since it's redundant.  I can't just Split Columns or Extract at the last space delimiter because not all of the Application column entries have versions so the last word in the Application name would be removed instead.

 

Can someone help me with editing the Replace formula?  What I would like to do is use Transform > Replace to take the value in the Version column for each record, look for that value in the same row's Application column name/version combination, and if found, then replace the matched text with an empty value.  For example "7-Zip 19.00" in the Application column would display as "7-Zip".  Attached is a screenshot. 

 

Replace doesn't let me add the Version column under "Value to Find" so I tried entering just a text value to add the formula, then edited the Replace formula in the formula bar and substituted that text value for the column [Version].  But I'm really, really new to this and apparently also really wrong in what I was attempting because I got an "Expression Error".

 

= Table.ReplaceValue(#"Reordered Columns","textvalue","",Replacer.ReplaceText,{"Application"})

Substituted text value for column:

= Table.ReplaceValue(#"Reordered Columns",[Version],"",Replacer.ReplaceText,{"Application"})

FindReplace.PNG
Categories:
I have the same question (0)
  • MM-07112020-0 Profile Picture
    on at

    I must be doing something wrong.  I get a different error this time.  See screenshot attached.  I copied and pasted this code over an existing Replace step that used a value. 

    Mary_M_0-1653494817530.png

     

    FindReplace2.PNG
  • MM-07112020-0 Profile Picture
    on at

    Wow. You make this look so easy!  Thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard