REVscene Automotive Forum

REVscene Automotive Forum (https://www.revscene.net/forums/)
-   Gaming, Computer Tech & Electronics (https://www.revscene.net/forums/gaming-computer-tech-electronics_32/)
-   -   For the Excel Pro: Cell Formatting Question? (https://www.revscene.net/forums/634560-excel-pro-cell-formatting-question.html)

Ferra 01-07-2011 09:27 AM

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.

TheNewGirl 01-07-2011 09:33 AM

Which version of Excel are you using?

Ferra 01-07-2011 09:41 AM

Quote:

Originally Posted by TheNewGirl (Post 7255092)
Which version of Excel are you using?

2007

TheNewGirl 01-07-2011 09:55 AM

Quote:

Originally Posted by Ferra (Post 7255098)
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.

Ferra 01-07-2011 10:02 AM

Quote:

Originally Posted by TheNewGirl (Post 7255113)
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)

Wetordry 01-07-2011 11:41 AM

Start a new column:

=LEFT(

Then you can have uniform cell formatting by specifying # of characters

TheNewGirl 01-07-2011 12:19 PM

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.

InvisibleSoul 01-07-2011 12:24 PM

=CONCATENATE(LEFT(A1,5),"…")

or

=LEFT(A1,5)&"…"

Ferra 01-07-2011 01:13 PM

i actually meant "character" count on my last post :p

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!!


All times are GMT -8. The time now is 10: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