![]() |
Excel "Trim" question
I'm trying to figure something out but I'm stumped...
I have a line of text that is between 20 and 70 characters long. What I want to do is Trim the line so it is no longer than 35 characters, but also so that is trims ONLY from the last space. This way it does not cut off a word, only puts in a break right before it. Also, so it will take what is left over and move it to the cell beside it, so I would now have two cells of data instead of one. help? :helpme |
This is opposed to merging adjacent cells?
|
Quote:
|
.. because the goal is to display a bunch of text on in a single row, without screwing up your column widths?
|
Quote:
I have this forumla, but trims off the last word, I was hoping it would trim the space before the 35th character: Code:
=LEFT(C2,FIND(CHAR(35),SUBSTITUTE(C2," ",CHAR(35),LEN(C2)-LEN(SUBSTITUTE(C2," ",""))))) |
Look what I found among my own Excel bookmarks:
http://groups.google.com/group/micro...2bf93c8d?pli=1 As far as I understand, this is what you are looking for? |
Quote:
|
All times are GMT -7. The time now is 10:07 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123