Split Single Long Text String into 3 or more columns with max characters

Cooper412

New Member
Joined
Dec 1, 2016
Messages
1
Hi,
I'm attempting to split a text string into multiple columns and need to limit the number of characters per column. I have a sample formula that works but can't limit the number of characters in column 2 and dump in column 3.

Sample
A1: Service First Restoration DBA Plumbing Concepts FBO Adam Smith

B1 (max 20 characters): =TRIM(LEFT(A1,FIND("%%",SUBSTITUTE(A1," ","%%",20-LEN(SUBSTITUTE(LEFT(A1,20)," ","")))))) ....Works fine!!
C1: (max 15 characters):
=TRIM(SUBSTITUTE(A1,B1,"")) .......Formula currently dumps rest of A1 in C1. Needs character restriction to 15 and dump the rest in D1
D1: (max 35 characters): ????

Current result
A1: Service First Restoration DBA Plumbing Concepts FBO Adam Smith
B1: Service First
C1: Restoration DBA Plumbing Concepts FBO Adam Smith (should only be 15 characters)
D1: Need a formula and limit to 35 characters

Thank you in advance!!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi, welcome to the board.

Without testing, it sounds like you need to set the max per column based on a cumulative value (C1 should start at 21 and end at 35)
either that, or use that TRIM that you have, and build that into the LEFT function
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,510
Members
448,967
Latest member
screechyboy79

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