Remove one string column from another string column
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
See bottom for picture
I have product names (1st column)
I also have a seperate flavour column
I want to remove the values in Flavour column from the text string in the Product column
So I would have the Product Description column without "SWEET MANDARIN AND GRAPEFRUIT" (in the first row for example)
This is tricky as you can see the flavour names have different numbers of words and lengths and they do not start at the same point in the text in each row.
Can someone help?
- Labels:
- Text Mining
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @tommyhally,
You could use the replace function to update the products column:
Replace([Product], [FLAVOUR], "")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @ you can use a replace formula to tackle that challege.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @tommyhally, you should be able to use the following expression:
Replace([Product], ' '+[FLAVOUR], '')
The ' '+[FLAVOUR] means after removal, there won't be duplicate whitespace.
Examples here:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks all for your guidance, this has solved my query - great support
