How do I fix a field length?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to 'fix' a field length to 15 characters (last name field) in order to
export to a comma deliminated ASCII text file to then be imported into
another database program. I am NOT familiar with macros and visual basic
code, so if a reply involves writing a macro to get the result I need, please
be as specific as possible.

Thank you very much in advance.

-K
 
Karina,

Use another sheet, filled with formulas like:

=LEFT(Sheet1!A1& REPT(" ",15),15)

and copy down and across as far as you need. Then copy and pastespecial
values, then do your export.

HTH,
Bernie
MS Excel MVP
 
Fill the whole sheet with that formula?

It is only one colum I need to be fixed to 15 characters in length.

All other columns in the spreadsheet can be varied lengths.
 
Karina,

Fill one column on your original sheet with that formula, and then copy the
formulas and pastespecial values over the original data, and delete the
formula column. Then do your export.

HTH,
Bernie
MS Excel MVP
 
Thank you Mr.Deitrick .... you are a genius and my new best friend!
That worked marvelously.

Now ... I shall look back at other questions to see how to combine the last
name and first name into one cell ..... "Smith Joe" (in addition to
that padded cell formula).

Thank you so much!
... Karina (not the Karina from previous posts in this discussion group)
 

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

Back
Top