stgermainr
New Member
- Joined
- Jan 20, 2021
- Messages
- 4
- Office Version
- 2019
- Platform
- Windows
So I have data in a column that is delimited by spaces. It would be simple to delimit by the spaces to get the desired result but the data is not as you can see below:
If I delimited by space, I would have st, as, and bl in the 3rd column instead of just having each category in their own column.
My solution is to create a formula to extract x number of characters before a particular string. Example:
Extract first character before the string "rb", or extract the first 3 characters before the string "fg" or extract the the first 2 characters before "pt" .
What would be the formula to do this?
5pt 3rb 1st 1bl 1-2fg 3-4ft |
0pt 5rb 1as 3bl 1to 0-3fg |
4pt 5rb 2bl 2-8fg |
If I delimited by space, I would have st, as, and bl in the 3rd column instead of just having each category in their own column.
My solution is to create a formula to extract x number of characters before a particular string. Example:
Extract first character before the string "rb", or extract the first 3 characters before the string "fg" or extract the the first 2 characters before "pt" .
What would be the formula to do this?