After Right/find formula then splitt to diffrent colums

TDNova

New Member
Joined
Apr 16, 2018
Messages
45
Hello, im making a big database and encountered a problem, currently very new to excel (1week) and hungry to learn more.

i got this text for example "TEL 14-30/11 (113-57B)1122,1123,1124,1125" and ive splittet it to 4 colums,

tel 14-30/11 113-57b 1122,1123,1124,1125 with diffrent formulas. but on the last one i want it to splitt into more colums, so each nr got their own.


Formulas ive been using.
tel :=LEFT(FJ4;FIND(" ";FJ4) -1)
14-30/11:=MID(FJ4;FIND(" ";FJ4)+1;FIND(" ";FJ4;FIND(" ";FJ4)+1)-FIND(" ";FJ4))
113-57b:=MID(FJ4;FIND("(";FJ4)+1;FIND(")";FJ4)-FIND("(";FJ4)-1)
1122,1123,1124,1125 :=MID(FJ4;FIND(")";FJ4)+1;20)

On the last formula is there a way to make it splitt up after ever "," ?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi,

If all your data strings are in the Exact same format as the sample you gave, you can use this formula copied across as far as needed to extract the data as you described:


Excel 2010
FJFKFLFMFNFOFPFQ
4TEL 14-30/11 (113-57B)1122,1123,1124,1125TEL14-30/11113-57B1122112311241125
Sheet11
Cell Formulas
RangeFormula
FK4=TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($FJ4,"(",""),")"," "),","," ")," ",REPT(" ",100)),COLUMNS($FK:FK)*100-99,100))


EDIT: Don't forget to change the comas in my formula to semicolons for your region.
It would look something like this:

Code:
=TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($FJ4;"(";"");")";" ");",";" ");" ";REPT(" ";100));COLUMNS($FK:FK)*100-99;100))
 
Last edited:
Upvote 0
Hi,

If all your data strings are in the Exact same format as the sample you gave, you can use this formula copied across as far as needed to extract the data as you described:

Excel 2010
FJFKFLFMFNFOFPFQ
TEL 14-30/11 (113-57B)1122,1123,1124,1125TEL14-30/11113-57B

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]4[/TD]

[TD="align: right"]1122[/TD]
[TD="align: right"]1123[/TD]
[TD="align: right"]1124[/TD]
[TD="align: right"]1125[/TD]

</tbody>
Sheet11

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]FK4[/TH]
[TD="align: left"]=TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($FJ4,"(",""),")"," "),","," ")," ",REPT(" ",100)),COLUMNS($FK:FK)*100-99,100))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]



EDIT: Don't forget to change the comas in my formula to semicolons for your region.
It would look something like this:

Code:
=TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($FJ4;"(";"");")";" ");",";" ");" ";REPT(" ";100));COLUMNS($FK:FK)*100-99;100))

Okey thanks alot! I appreciate your help.
I will give it a try =)
 
Upvote 0
jtakw thanks ! it worked perfectly! it will save me alot of work aswell. I need to sit down and break down the formula to figure out how it works
then i can maybe start to build my own formulas like that.

i understand the idea and progress of the formula but im not totally familiar with all the commands/formulas yet, but that's the fun part!

Have a nice day!
 
Upvote 0
You're welcome, welcome to the forum.

Thank you, you have a nice day also.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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