Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Filter Character Size | Excel Discussion (Misc queries) | |||
Excel-Match 1st text character in a string to a known character? | Excel Worksheet Functions | |||
Can I create a special character for the Character Map? | Excel Discussion (Misc queries) | |||
Index Match Concatenate and Screen Size | Excel Worksheet Functions | |||
I know how to concatenate ,can one de-concatenate to split date? | New Users to Excel |