Split text to rows below

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
442
Office Version
  1. 365
Platform
  1. Windows
Hi Guys, is there a way to split the text below to rows below the text?

Testthisone Otherthanthis profittoday

All text is seperated by a space so the disired result would be:

Test this one
Other than this
profit today









 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
How about
Fluff.xlsm
A
1
2Testthisone Otherthanthis profittoday
3Testthisone
4Otherthanthis
5profittoday
Smith, John
Cell Formulas
RangeFormula
A3:A5A3=TEXTSPLIT(A2,," ")
Dynamic array formulas.
 
Upvote 0
Thanks Fluff, that did work but I've noticed some cells look like the below when you click off the cell so there is actually a space between both words on some but not on others. It looks like the words have been separated using alt and enter

Test Deposits
New Creditor
New Vehicle
Vehicle Creditors
Consigned
Other Trade
 
Upvote 0
In that case try
Excel Formula:
=TEXTSPLIT(A2,,CHAR(10))
 
Upvote 0
Perfect, is there a way to drag that formula down when there is data in the rows below? For example: At the moment I'm getting a spill error when I drag it

DataText Split Formula
Balance TestDocs Total GPBalance
Test Docs
Total
GP
FiveFive
TwelveTwelve
JimJim
SteveSteve
DaveDave
 
Upvote 0
No you cannot drag it down, otherwise it will prevent the spill.
What exactly are you trying to do?
 
Upvote 0
The data column is the column that needs splitting. As you can see some of the headers are in one cell, but the data in the amount column relates to splits. For example the 500 in B6 in the amount column relates to Profit in cell A5. The problem being there is data below the cells that need splitting. Hope this makes sense

DataAmountDesired new Data Column
Sales500Sales
Profit100Profit
GP120.00%GP
Sales
Profit
Corporate
50Sales
500Profit
100.00%Corporate
Other Sales
Other Profit
Other GP%
17Other Sales
18Other Profit
100.00%Other GP%
Collision
Waiver
GP %
41Collision
45Waiver
100.00%GP %
Total Sales25Total Sales
Total Profit25Total Profit
Total GP%100.00%Total GP%
Other Income-Other Income
Total Sales29Total Sales
Total Profit28Total Profit
Total GP%100.00%Total GP%
 
Upvote 0
You will just have to put the formula into the 1st blank cell for each value that needs to be split.
 
Upvote 0
ok thanks Fluff, I have 207 pages of this so was hoping to be able to drag it. No probs though your formula will still help speed the process up. Thanks agin
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,136
Messages
6,123,246
Members
449,093
Latest member
Vincent Khandagale

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