Skip to main content
Solved

Removing keyword based on the value of another column


calvin.fme
Contributor
Forum|alt.badge.img+2

Hi all,

 

I am trying to remove some keywords based on the value of another column.

 image 

What I am hoping to achieve:

Removing Oxley & Victoria in Column A

 

Can anyone please provide some assistance.

 

Thanks

Best answer by gav

Hi @calvin.fme​  - If you know the formatting will be consistent (for example, only 1 space after the value in Column B), you can use a StringReplacer and set the Attribute to "Column A", Mode to "Replace Text" and Text To Replace to "@Value(B) " (Don't forget the space). Screenshot below.

 

StringReplacer - Replace Text

View original
Did this help you find an answer to your question?

3 replies

gav
Contributor
Forum|alt.badge.img+10
  • Contributor
  • Best Answer
  • July 25, 2022

Hi @calvin.fme​  - If you know the formatting will be consistent (for example, only 1 space after the value in Column B), you can use a StringReplacer and set the Attribute to "Column A", Mode to "Replace Text" and Text To Replace to "@Value(B) " (Don't forget the space). Screenshot below.

 

StringReplacer - Replace Text


calvin.fme
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • July 25, 2022

Thank you so much @gav​. It worked!  


gav
Contributor
Forum|alt.badge.img+10
  • Contributor
  • July 25, 2022

Rock on!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings