Extract Text from Cell Help
Good morning,
This should be a simple one but I can't get my head around this formula...
The cell contains the following text:
F0101 - 370001234
I would like to extract into a different cell all characters before the first " ". In this instance it is F0101.
Where I am struggling is because the text I want to extract varies in number of characters. For example, it could be:
GHA750WR - 370001234
In the above example I would want the cell to display GHA750WR.
I appreciate any support you can give with this.
Thank you
Answers
-
Hi Lee
To replicate your scenario, I created a column titled "Source" which contains the source data and two columns titles Left and Right. The left one should contain text before the - and right should contain text after the -. I put below formulae in the left and right columns respectively.
=LEFT(Source@row, FIND(" -", Source@row) - 1)
=RIGHT(Source@row, LEN(Source@row) - FIND("- ", Source@row))
You need to replace Source with the name of the column in your sheet. This should give you the expected results.
Thanks
Amit
Best Regards
Amit Wadhwani, Smartsheet Community Champion
Smartsheet CoE, Ignatiuz, Inc., Exton, PA
Did this answer help you? Show some love by marking this answer as "Insightful 💡" or "Awesome ❤️" and "Vote Up ⬆️"https://www.linkedin.com/in/amitinddr/
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!