- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Remove text from column based on another column in same table
I have a table imported daily from the web and it contains two columns , one is name and address and the other is just address
I need to extract just the name from the address , by a formula to remove what is in the address column from the name address column
Name Address Addresss
John Smith Johns Beach Bar , Miami , US Johns Beach Bar , Miami , US
Mike Brown Mikes Beach Bar , Florida , US Mikes Beach Bar , Florida , US
I need a Name Column adding which just shows the name
John Smith
Mike Brown
I need to do this in query editor please
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

HI @Pandadev,
Did you mean to remove the 'text string' stored in the 'address' column from the 'name address' field? If that is the case, you can create a calculated column with SUBSTITUTE function:
Replaced = SUBSTITUTE([Name Address],[Addresss],"")
Regards,
Xiaoxin Sheng
If this post helps, please consider accept as solution to help other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

HI @Pandadev,
Did you mean to remove the 'text string' stored in the 'address' column from the 'name address' field? If that is the case, you can create a calculated column with SUBSTITUTE function:
Replaced = SUBSTITUTE([Name Address],[Addresss],"")
Regards,
Xiaoxin Sheng
If this post helps, please consider accept as solution to help other members find it more quickly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Pandadev you can make use of below measure
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

unfortunately not , sometimes it can be like
Smith, Arnold James
John & Mary Smith

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
10-09-2023 09:42 PM | |||
11-16-2023 06:54 PM | |||
03-26-2024 02:07 AM | |||
Anonymous
| 02-22-2024 01:46 AM | ||
11-08-2023 11:58 AM |
User | Count |
---|---|
141 | |
115 | |
82 | |
63 | |
48 |