Skip to main content
Solved

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

  • October 14, 2016
  • 3 replies
  • 28 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 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
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 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!

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