Skip to main content
Solved

Is there a way to drop text from cell in excel?


Forum|alt.badge.img

Hey guys I am trying to figure out how to clean up some data before using the google geocoder transformer. Is there anyway to drop text from my address column that is messing up the geocoder, i.e. apt or suite number?

I was thinking some kind of string splitter or something, but not sure. I have attached a screengrab below, thanks!

Best answer by itay

Hi @heidtmer one way would be to use something like this in the StringReplacer (naturally Attributes would be your address attribute and not empty as shown)

Hope this helps.

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

3 replies

itay
Contributor
Forum|alt.badge.img+16
  • Contributor
  • Best Answer
  • October 14, 2016

Hi @heidtmer one way would be to use something like this in the StringReplacer (naturally Attributes would be your address attribute and not empty as shown)

Hope this helps.


Forum|alt.badge.img
  • Author
  • October 14, 2016

Awesome! I started playing around with it and changed the text to match column to ;.{1,} and it dropped everything after the semi colon. Can you explain what this syntax means?

thank you!


itay
Contributor
Forum|alt.badge.img+16
  • Contributor
  • October 14, 2016
heidtmer wrote:

Awesome! I started playing around with it and changed the text to match column to ;.{1,} and it dropped everything after the semi colon. Can you explain what this syntax means?

thank you!

basically it means 'drop any single character (.) after the semicolon' {1,} means 1 or more of any single character.

 

Before the 2016 with the regular expression window in the transformers I used (and still do) http://rubular.com/ for checking my syntax

 

 


Reply


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