+ Reply to Thread
Results 1 to 5 of 5

How do I fix a field length?

  1. #1
    Karina
    Guest

    How do I fix a field length?

    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

  2. #2
    Bernie Deitrick
    Guest

    Re: How do I fix a field length?

    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

    "Karina" <[email protected]> wrote in message
    news:[email protected]...
    > 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




  3. #3
    Karina
    Guest

    Re: How do I fix a field length?

    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.



    "Bernie Deitrick" wrote:

    > 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
    >
    > "Karina" <[email protected]> wrote in message
    > news:[email protected]...
    > > 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

    >
    >
    >


  4. #4
    Bernie Deitrick
    Guest

    Re: How do I fix a field length?

    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

    "Karina" <[email protected]> wrote in message
    news:[email protected]...
    > 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.
    >
    >
    >
    > "Bernie Deitrick" wrote:
    >
    >> 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
    >>
    >> "Karina" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > 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

    >>
    >>
    >>




  5. #5
    Karina
    Guest

    Re: How do I fix a field length?

    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)


    "Bernie Deitrick" wrote:

    > 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
    >
    > "Karina" <[email protected]> wrote in message
    > news:[email protected]...
    > > 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.
    > >
    > >
    > >
    > > "Bernie Deitrick" wrote:
    > >
    > >> 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
    > >>
    > >> "Karina" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > 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
    > >>
    > >>
    > >>

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1