Aligning Data Within Merged Cells

S

Steve Almond

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
 
G

Guest

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:
 

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