REVscene - Vancouver Automotive Forum


Welcome to the REVscene Automotive Forum forums.

Registration is Free!You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! The banners on the left side and below do not show for registered users!

If you have any problems with the registration process or your account login, please contact contact us.


Go Back   REVscene Automotive Forum > Vancouver LifeStyles (VLS) > Gaming, Computer Tech & Electronics

Gaming, Computer Tech & Electronics Fortnite.CounterStrike.CallOfDuty.Dota.MineCraft.
Tips & tricks, tech support, home theatre, online gaming, reviews, latest news...

Reply
 
Thread Tools
Old 01-07-2011, 09:27 AM   #1
I don't like cheese but I love milk!
 
Ferra's Avatar
 
Join Date: Nov 2002
Location: Van
Posts: 1,980
Thanked 895 Times in 243 Posts
Failed 105 Times in 49 Posts
For the Excel Pro: Cell Formatting Question?

you know when a text is too long to fit inside a cell, the last portion of the text usually just get cut off...

I am wondering if it is possible to format the cell such that...the last portion of the text becomes "..." or "~" if the text is too long to fit inside the cell.

For example:
If I have this text: "superduperwalala" in cell A, and anything after "superdup" gets cut off...i want it to display something like "superd..." or "superdu~" instead.


**I know I can autofit, resize text, wrap text, merge cell....etc, but I don't want that because I want to keep the format uniform.
Advertisement
Ferra is offline   Reply With Quote
Old 01-07-2011, 09:33 AM   #2
Diagonally parked in a parallel universe
 
TheNewGirl's Avatar
 
Join Date: Aug 2009
Location: Coquitlam
Posts: 1,476
Thanked 522 Times in 263 Posts
Failed 102 Times in 40 Posts
Which version of Excel are you using?
__________________
~ Just another noob looking for a clue
TheNewGirl is offline   Reply With Quote
Old 01-07-2011, 09:41 AM   #3
I don't like cheese but I love milk!
 
Ferra's Avatar
 
Join Date: Nov 2002
Location: Van
Posts: 1,980
Thanked 895 Times in 243 Posts
Failed 105 Times in 49 Posts
Quote:
Originally Posted by TheNewGirl View Post
Which version of Excel are you using?
2007
Ferra is offline   Reply With Quote
Old 01-07-2011, 09:55 AM   #4
Diagonally parked in a parallel universe
 
TheNewGirl's Avatar
 
Join Date: Aug 2009
Location: Coquitlam
Posts: 1,476
Thanked 522 Times in 263 Posts
Failed 102 Times in 40 Posts
Quote:
Originally Posted by Ferra View Post
2007
Hmmm I don't think you can do it without creating more rows/cols. I suspect you could probably rig up an IF statement based on the total characters and if it exceeds X characters then only show X characters and then hide the original input col but if you expand that collum it won't show any more of the word than the if statement requested and all and all would be way more trouble then it's worth and I can't figure out the formula to do it.

Or you could put a small collum beside the one with the text in it and have it use an =IF(LEN(A1)>8, "…") this would return an ... in the adjacent cell. A1 being what ever the origional cell address is and 8 or what ever being the total number of characters typically visible in the cell, adjust as you like.
__________________
~ Just another noob looking for a clue

Last edited by TheNewGirl; 01-07-2011 at 10:10 AM.
TheNewGirl is offline   Reply With Quote
Old 01-07-2011, 10:02 AM   #5
I don't like cheese but I love milk!
 
Ferra's Avatar
 
Join Date: Nov 2002
Location: Van
Posts: 1,980
Thanked 895 Times in 243 Posts
Failed 105 Times in 49 Posts
Quote:
Originally Posted by TheNewGirl View Post
Hmmm I don't think you can do it without creating more rows/cols. I suspect you could probably rig up an IF statement based on the total characters and if it exceeds X characters then only show X characters and then hide the original input col but if you expand that collum it won't show any more of the word than the if statement requested and all and all would be way more trouble then it's worth and I can't figure out the formula to do it.
so can I do that in office 2010? (I was thinking about upgrading anyway)

I actually have no problem writing the forumla like what you describle...only problem with manual formula is that... everytime I change the font/size, column width, i will have to re-write the formula again.. (plus the formula will be based on word counts, but not every word/numbers/space take up the same width)
Ferra is offline   Reply With Quote
Old 01-07-2011, 11:41 AM   #6
RS controls my life!
 
Wetordry's Avatar
 
Join Date: Jan 2002
Posts: 713
Thanked 42 Times in 32 Posts
Failed 5 Times in 5 Posts
Start a new column:

=LEFT(

Then you can have uniform cell formatting by specifying # of characters
Wetordry is offline   Reply With Quote
Old 01-07-2011, 12:19 PM   #7
Diagonally parked in a parallel universe
 
TheNewGirl's Avatar
 
Join Date: Aug 2009
Location: Coquitlam
Posts: 1,476
Thanked 522 Times in 263 Posts
Failed 102 Times in 40 Posts
I don't know about 2010 I only have 2007,

Wetordy, I tried a variation of that with data in a column then I fed it into a new one that went =left(A1,5) for example which will pull the first 5 characters of cell A1, is there a way to tag text onto the end of it? I tried adding "..." but that won't do it and going into the help sets me into a treaty on left to right justification of language. :P

Ferra > You will not be able to do it on Word count. If there's away to do it at all it'd be through character count which you could base on a variable in a second box so you only have to change it in one place and it'll change them all. Still it's more static then you want.
__________________
~ Just another noob looking for a clue
TheNewGirl is offline   Reply With Quote
Old 01-07-2011, 12:24 PM   #8
The RS Freebie guru
 
InvisibleSoul's Avatar
 
Join Date: Jul 2001
Location: East Vancouver
Posts: 22,032
Thanked 2,491 Times in 860 Posts
Failed 137 Times in 67 Posts
=CONCATENATE(LEFT(A1,5),"…")

or

=LEFT(A1,5)&"…"
InvisibleSoul is offline   Reply With Quote
Old 01-07-2011, 01:13 PM   #9
I don't like cheese but I love milk!
 
Ferra's Avatar
 
Join Date: Nov 2002
Location: Van
Posts: 1,980
Thanked 895 Times in 243 Posts
Failed 105 Times in 49 Posts
i actually meant "character" count on my last post

I used invisiblesoul method + a "=if((len(A1)>8, LEFT(A1,5)&"…", A1)
(otherwise the formula would've added the "..." at the back regardless of how long the word is.

Not perfect but i guess that as good as it gets....thanks!!
Ferra is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -8. The time now is 01:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
SEO by vBSEO ©2011, Crawlability, Inc.
Revscene.net cannot be held accountable for the actions of its members nor does the opinions of the members represent that of Revscene.net