How can i specify a cell to have a fixed number of characters

G

Guest

I need to concatenate text from 4 cells so that in the final string the text
from each cell is padded up to a length of 40 characters.
any ideas?
 
D

Dave Peterson

=left(a1&rept(" ",40),40)&left(b1&rept(" ",40),40) & .....

If you have numbers/dates, you may want:

=right(rept(" ",40)&text(a1,"mm/dd/yyyy"),40) & .....
 

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