Concatenate and character size

S

Scafidel

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))
 
F

FSt1

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
 
F

FSt1

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
 
R

Ron Rosenfeld

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
 
R

Ron Rosenfeld

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
 
R

Ron Rosenfeld

Thanks. That'll help.

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
 
R

Ron Rosenfeld

Thanks. That'll help.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top