GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Excel "Trim" question (https://gfy.com/showthread.php?t=962433)

96ukssob 04-07-2010 02:36 PM

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

deef-thp 04-07-2010 02:42 PM

This is opposed to merging adjacent cells?

96ukssob 04-07-2010 02:46 PM

Quote:

Originally Posted by deef-thp (Post 17014348)
This is opposed to merging adjacent cells?

The data is in one column now, but it needs to be broken out into two columns with a max character limit on the first one but making sure to trim the last space in the sentence so words are not cut off.

deef-thp 04-07-2010 02:48 PM

.. because the goal is to display a bunch of text on in a single row, without screwing up your column widths?

96ukssob 04-07-2010 03:01 PM

Quote:

Originally Posted by deef-thp (Post 17014378)
.. because the goal is to display a bunch of text on in a single row, without screwing up your column widths?

actually what I am doing is trying to copy ads from a Yahoo campaign to AdWords and they have 100's of ad creative. So Yahoo allows you to have one line at 70 characters and AdWords is 2 lines at 35 characters.

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," ","")))))

Adraco 04-07-2010 03:54 PM

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?

96ukssob 04-07-2010 04:19 PM

Quote:

Originally Posted by Adraco (Post 17014587)
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?

Nice find! pretty much, the only thing i need it to do is whatever was before that 35 characters to put that on another line


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