Concatenate and format

  • Thread starter Thread starter Adam
  • Start date Start date
A

Adam

Concatenate and format

Hey there.
Have a large spreadsheet of stock transactions.
Currently have a column for number of shares and another
column for symbol.
I want to concatenate into one cell and keep the share
amount right justified and the description left justified.

Old

1000 CSCO
50 XLNX

These are in separate columns

But when I concatenate I get

1000 CSCO
50 XLNX

How can I get the info in one cell and nicely formatted?

Thanks
Adam
 
Adam,

Main problem is that most fonts will invalidate anything you do, as some
characters will display wider than others. So, if you had a formula like
=A1&LEFT(" ",6-LEN(A1))&B1
you will end up with a consistent number of characters, but it still won't
line up. Combine it with a proportional font like Courier, and you may get
what you want.
 
Hi Adam,
With the number of shares in A1, the symbol in B1, try either of these:
=TEXT(A1,"????")&" "&B1
=TEXT(A1,"####")&" "&B1

Bernard
 

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

Similar Threads

Lookup and Sum in same cell 5
concatenate 5
Concatenate not working 2
Concatenation 8
Concatenating Currency and Percent 5
Combining data for charting 8
Concatenation and Formatting 1
Alternative to Concatenate 5

Back
Top