A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Concatenate and character size



 
 
Thread Tools Display Modes
  #1  
Old May 22nd, 2009, 09:21 PM posted to microsoft.public.excel.misc
Scafidel[_3_]
external usenet poster
 
Posts: 11
Default Concatenate and character size

I am using this formula to evenly space information across a cell (label).
Essentially, I would like Cell B4 to appear on the Left and Cell B3 apears on
the Right in the cell with the formula. B4 holds names while B3 holds small
numbers or combination of numbers 3,4,5. Names, of course can be short to
very long. The formula works, but I guess because of the different physical
size of the letters(both W and , count as 1), I am not getting the desire
result. Is there some way to allow for the different sizes of letters?
Thanks


=CONCATENATE(LEFT(($B$4&IF(OR($E$3=TRUE,$F$3=TRUE) ,(",
"&$C$6),"")),(LEN(($B$4&IF(OR($E$3=TRUE,$F$3=TRUE) ,(",
"&$C$6),"")))))&(REPT(CHAR(32),(60-(LEN($B$4))-(IF(OR($E$3=TRUE,$F$3=TRUE),11,0)))))&("Tract "&$B$3))
--
Scafidel
Lafayette, Louisiana
  #2  
Old May 22nd, 2009, 10:23 PM posted to microsoft.public.excel.misc
FSt1
external usenet poster
 
Posts: 2,788
Default Concatenate and character size

hi
it is possible to have multiply formats in a cell such as multiple font
sizes and colors but unfortunely, this does not apply to number or formulas.
real text only.

regards
FSt1

"Scafidel" wrote:

I am using this formula to evenly space information across a cell (label).
Essentially, I would like Cell B4 to appear on the Left and Cell B3 apears on
the Right in the cell with the formula. B4 holds names while B3 holds small
numbers or combination of numbers 3,4,5. Names, of course can be short to
very long. The formula works, but I guess because of the different physical
size of the letters(both W and , count as 1), I am not getting the desire
result. Is there some way to allow for the different sizes of letters?
Thanks


=CONCATENATE(LEFT(($B$4&IF(OR($E$3=TRUE,$F$3=TRUE) ,(",
"&$C$6),"")),(LEN(($B$4&IF(OR($E$3=TRUE,$F$3=TRUE) ,(",
"&$C$6),"")))))&(REPT(CHAR(32),(60-(LEN($B$4))-(IF(OR($E$3=TRUE,$F$3=TRUE),11,0)))))&("Tract "&$B$3))
--
Scafidel
Lafayette, Louisiana

  #3  
Old May 22nd, 2009, 10:50 PM posted to microsoft.public.excel.misc
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Concatenate and character size

On Fri, 22 May 2009 13:21:01 -0700, Scafidel wrote:

Is there some way to allow for the different sizes of letters?


I looked into that once and found it to be extraordinarily complex. The
simplest solution, if you can live with it, would be to use a fixed rather than
a proportional font.
--ron
  #4  
Old May 23rd, 2009, 12:54 AM posted to microsoft.public.excel.misc
Scafidel[_3_]
external usenet poster
 
Posts: 11
Default Concatenate and character size

Thanks. That'll help.
--
Scafidel
Lafayette, Louisiana


"Ron Rosenfeld" wrote:

On Fri, 22 May 2009 13:21:01 -0700, Scafidel wrote:

Is there some way to allow for the different sizes of letters?


I looked into that once and found it to be extraordinarily complex. The
simplest solution, if you can live with it, would be to use a fixed rather than
a proportional font.
--ron

  #5  
Old May 23rd, 2009, 03:52 PM posted to microsoft.public.excel.misc
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Concatenate and character size

On Fri, 22 May 2009 16:54:03 -0700, Scafidel wrote:

Thanks. That'll help.
--
Scafidel
Lafayette, Louisiana


Here's another thought, that might let you use a proportionally spaced font:

1. Custom format the cell to have Alignment = "Distributed"
2. Construct your two strings so that within each string, the regular space
is replaced with the nbsp or CHAR(160), but there remains a true space
between the phrase that you want left justified, and the one you want
right-justified.

Given your formula, something like the following might work:

=CONCATENATE(LEFT((SUBSTITUTE($B$4," ",CHAR(160))
&IF(OR($E$3=TRUE,$F$3=TRUE),(", "&$C$6),"")),
(LEN(($B$4&IF(OR($E$3=TRUE,$F$3=TRUE),(", "&$C$6),"")))))
&("Tract"&CHAR(160) & $B$3))
--ron
  #6  
Old May 24th, 2009, 03:38 AM posted to microsoft.public.excel.misc
Scafidel[_3_]
external usenet poster
 
Posts: 11
Default Concatenate and character size

Thanks, Ron. That did it. I had to massage it a bit, but it looks good.
--
Scafidel
Lafayette, Louisiana


"Ron Rosenfeld" wrote:

On Fri, 22 May 2009 16:54:03 -0700, Scafidel wrote:

Thanks. That'll help.
--
Scafidel
Lafayette, Louisiana


Here's another thought, that might let you use a proportionally spaced font:

1. Custom format the cell to have Alignment = "Distributed"
2. Construct your two strings so that within each string, the regular space
is replaced with the nbsp or CHAR(160), but there remains a true space
between the phrase that you want left justified, and the one you want
right-justified.

Given your formula, something like the following might work:

=CONCATENATE(LEFT((SUBSTITUTE($B$4," ",CHAR(160))
&IF(OR($E$3=TRUE,$F$3=TRUE),(", "&$C$6),"")),
(LEN(($B$4&IF(OR($E$3=TRUE,$F$3=TRUE),(", "&$C$6),"")))))
&("Tract"&CHAR(160) & $B$3))
--ron

  #7  
Old May 24th, 2009, 12:24 PM posted to microsoft.public.excel.misc
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Concatenate and character size

On Sat, 23 May 2009 19:38:02 -0700, Scafidel wrote:

Thanks, Ron. That did it. I had to massage it a bit, but it looks good.
--
Scafidel
Lafayette, Louisiana



Glad to help. Thanks for the feedback.
--ron
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.