Splitting Text from special characters 3 times

dan1992

New Member
Joined
Nov 29, 2019
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hello,
I have a cell containing the following information:

"AM,1,10|LA,1,5|VU,1,5"

The end product i need is one column containg AM (so after" and before , ) one column containing LA (so between | | ) one column containing VU (after | and before ")
I need this to be a formula as the codes used in the example with change and some of the codes are only 1 letter.
Any help would be hugely appreciated.
Hope that made sense
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
use Power Query with Split (Before, After or Between) delimiter
Thanks for the swift reply - i would prefer a formula so it can stay in the spreadsheet and will auto updated when new data is input
 
Upvote 0
I cant find it - do you know the formula(s) that would be needed?
 
Upvote 0
Text in A1
Please try at B1:D1
=TRIM(LEFT(SUBSTITUTE(MID(SUBSTITUTE(SUBSTITUTE($A1,"""",),"|",REPT(" ",30)),COLUMNS($B1:B1)*30-29,30),",",REPT(" ",30)),30))
 
Upvote 0
Text in A1
Please try at B1:D1
=TRIM(LEFT(SUBSTITUTE(MID(SUBSTITUTE(SUBSTITUTE($A1,"""",),"|",REPT(" ",30)),COLUMNS($B1:B1)*30-29,30),",",REPT(" ",30)),30))
Thanks - I have put that formula in the cell next to the data and it has returned AM so the first part. Do i need to use similar formulas in the adjacent columns to get the middle and last letters?
 
Upvote 0

Forum statistics

Threads
1,223,721
Messages
6,174,091
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top