ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Concatenate and character size (https://www.excelbanter.com/excel-discussion-misc-queries/231738-concatenate-character-size.html)

Scafidel[_3_]

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

FSt1

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


Ron Rosenfeld

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

Scafidel[_3_]

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


Ron Rosenfeld

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

Scafidel[_3_]

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


Ron Rosenfeld

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


All times are GMT +1. The time now is 12:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com