Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2015, 11:35 AM
Snakehips Snakehips is offline Formula Max Character per cell + spread over other colums Windows 8 Formula Max Character per cell + spread over other colums Office 2013
Advanced Beginner
 
Join Date: Mar 2015
Posts: 36
Snakehips is on a distinguished road
Default

lily,

Try the following e.g. for A1 split into B1,C1,D1.
In B1....


=TRIM(LEFT(SUBSTITUTE(A1," ",REPT(" ","99"),31-LEN(SUBSTITUTE(LEFT(A1,31)," ",""))),99))

In C1....
=TRIM(LEFT(SUBSTITUTE(SUBSTITUTE(A1,B1,"",1)," ",REPT(" ","99"),31-LEN(SUBSTITUTE(LEFT(SUBSTITUTE(A1,B1,"",1),31)," ",""))),99))

In D1.....
=TRIM(SUBSTITUTE(TRIM(SUBSTITUTE(A1,B1,"",1)),C1," ",1))

Should give max 30 characters per first two cells and then the balance in third cell. The split will depend upon the occurrence of spaces / the length of words at or around the split points. If text in A1 is close to 90 characters and the words on the split points are long then you could find that the balance of characters left to go in D is greater than 30????

Try it on your real data and see how it goes.

Once split out by the formulas if you wish, you can convert the results to 'hard' text by doing a Copy >> Paste Special >> Paste Values in situ.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Max Character per cell + spread over other colums Delete "enter" character at end of the cell MaarTTn Word Tables 2 02-11-2015 02:55 AM
Formula Max Character per cell + spread over other colums How do I output special character to a specific cell (x,y)? norwood Word VBA 2 01-31-2014 01:26 PM
Formula Max Character per cell + spread over other colums Formula in cell b1 using cell a1 if a1 is over certain number pumkinbug87 Excel 5 12-03-2013 12:34 PM
Display a label character in a data cell markg2 Excel 9 09-07-2013 05:56 AM
Change formula cell range based on cell value Scoth Excel 4 10-25-2012 07:51 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft