split column using formula to keep it dynamic

Bob_ipc

Board Regular
Joined
Oct 18, 2017
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Hey thanks for looking

In column F I have between 1-3 words, when there are three words I would like them to go to column G and H using a formula, The data comes from another tab so I would like it to load dynamically. Any help would be great!! Thank you.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi!

Assuming your words are separated by spaces, I would use a help column, say L, with this formula:

Code:
L1[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=MID(F1,SEARCH("  ",F1)+1,50)[/TD]
[/TR]
</tbody>[/TABLE]

Then I would use these to get single words in G thru H;
Code:
G1[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=LEFT(F1,SEARCH("  ",F1)-1)[/TD]
[/TR]
</tbody>[/TABLE]

Code:
H1[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=IF(ISERR(SEARCH("  ",F1,SEARCH(" ",F1)+1)),MID(F1,SEARCH("  ",F1)+1,50),LEFT(L1,SEARCH(" ",L1)-1))[/TD]
[/TR]
</tbody>[/TABLE]

Code:
I1[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=IF(ISERR(SEARCH("  ",F1,SEARCH(" ",F1)+1)),"",MID(L1,SEARCH("  ",L1)+1,50))[/TD]
[/TR]
</tbody>[/TABLE]

Godspeed!
 
Last edited:
Upvote 0
Hey thanks for the response, I gave it a try using GZ column as my help column cause that was my next empty column, but I was only getting #VALUE Errors. What am I missing?
 
Upvote 0
Try these (no help column needed):

Code:
G1[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=IFERROR(IFERROR(LEFT(F1,SEARCH("  ",F1)-1),LEFT(F1,FIND("/",F1,1)-1)),"")[/TD]
[/TR]
</tbody>[/TABLE]

Code:
H1[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=IFERROR(IFERROR(LEFT(MID(F1,IFERROR(FIND("  ",F1,LEN(IFERROR(LEFT(F1,SEARCH("  ",F1)),LEFT(F1,FIND("/",F1,1)-1))))+1,FIND("/",F1,LEN(IFERROR(LEFT(F1,SEARCH("  ",F1)),LEFT(F1,FIND("/",F1,1)-1))))+1),20),FIND("  ",MID(F1,IFERROR(FIND(" ",F1,LEN(IFERROR(LEFT(F1,SEARCH("  ",F1)),LEFT(F1,FIND("/",F1,1)-1))))+1,FIND("/",F1,LEN(IFERROR(LEFT(F1,SEARCH("  ",F1)),LEFT(F1,FIND("/",F1,1)-1))))+1),20),1)-1),MID(F1,IFERROR(FIND("  ",F1,LEN(IFERROR(LEFT(F1,SEARCH("  ",F1)),LEFT(F1,FIND("/",F1,1)-1))))+1,FIND("/",F1,LEN(IFERROR(LEFT(F1,SEARCH("  ",F1)),LEFT(F1,FIND("/",F1,1)-1))))+1),20)),"")[/TD]
[/TR]
</tbody>[/TABLE]

Code:
I1[TABLE="width: 64"]
<tbody>[TR]
[TD="width: 64"]=IFERROR(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(F1,G1,""),H1,""),"/",""),"  ",""),"")[/TD]
[/TR]
</tbody>[/TABLE]

Godspeed!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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