ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Aligning Data Within Merged Cells (https://www.excelbanter.com/excel-discussion-misc-queries/42994-aligning-data-within-merged-cells.html)

Steve Almond

Aligning Data Within Merged Cells
 
I want to merge two columns of data - one of numbers one of text. This is no
problem, but I want the text to be aligned in the merged cells, not the
numbers. Here is how it appears (hope formatting is OK):

50 XTO 50 XTO
32.5 ZEUS 32.5 ZEUS
417.5 ZEUS 417.5 ZEUS

Here is how I would like it:

50 XTO 50 XTO
32.5 ZEUS 32.5 ZEUS
417.5 ZEUS 417.5 ZEUS

Any help appreciated,

Steve



Mike

You have to use two columns or manually align each one.

"Steve Almond" wrote:

I want to merge two columns of data - one of numbers one of text. This is no
problem, but I want the text to be aligned in the merged cells, not the
numbers. Here is how it appears (hope formatting is OK):

50 XTO 50 XTO
32.5 ZEUS 32.5 ZEUS
417.5 ZEUS 417.5 ZEUS

Here is how I would like it:

50 XTO 50 XTO
32.5 ZEUS 32.5 ZEUS
417.5 ZEUS 417.5 ZEUS

Any help appreciated,

Steve




Stefi

Define a maximum length for both column (Number:A, Text:B), let's say 10, then:


=REPT(" ";10-LEN(TEXT(A3;"0,0")))&TEXT(A3;"0,0")&REPT(" ";10-LEN(B3))&B3


Regards,
Stefi


€˛Steve Almond€¯ ezt Ć*rta:

I want to merge two columns of data - one of numbers one of text. This is no
problem, but I want the text to be aligned in the merged cells, not the
numbers. Here is how it appears (hope formatting is OK):

50 XTO 50 XTO
32.5 ZEUS 32.5 ZEUS
417.5 ZEUS 417.5 ZEUS

Here is how I would like it:

50 XTO 50 XTO
32.5 ZEUS 32.5 ZEUS
417.5 ZEUS 417.5 ZEUS

Any help appreciated,

Steve





All times are GMT +1. The time now is 05:49 AM.

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