Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Filter Character Size Heikki Excel Discussion (Misc queries) 1 April 6th 09 10:20 PM
Excel-Match 1st text character in a string to a known character? bushlite Excel Worksheet Functions 2 January 15th 07 06:36 PM
Can I create a special character for the Character Map? JohnP Excel Discussion (Misc queries) 3 December 24th 06 01:10 AM
Index Match Concatenate and Screen Size PeterAtherton Excel Worksheet Functions 2 September 2nd 06 09:39 AM
I know how to concatenate ,can one de-concatenate to split date? QUICK BOOKS PROBLEM- New Users to Excel 1 July 26th 05 05:07 PM


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

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

About Us

"It's about Microsoft Excel"