Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Karina
 
Posts: n/a
Default 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   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

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" wrote in message
...
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   Report Post  
Karina
 
Posts: n/a
Default

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" wrote in message
...
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   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

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" wrote in message
...
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" wrote in message
...
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   Report Post  
Karina
 
Posts: n/a
Default

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" wrote in message
...
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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to CONCATENATE two dates field together Lisa Excel Worksheet Functions 6 April 2nd 23 08:09 PM
Using a Pivot Table Calculated Field to get a Unique Count Mike Struckman Excel Worksheet Functions 1 November 22nd 05 05:32 PM
Setting default pivot table field setting to "sum" Mr. Moose Excel Discussion (Misc queries) 2 December 21st 04 04:43 PM
How to create a calculated field formula based on Pivot Table resu dha17 Excel Discussion (Misc queries) 1 December 15th 04 05:39 AM
How do link to a remote field but use the path from a stored field Michael T. Excel Discussion (Misc queries) 1 December 10th 04 12:18 AM


All times are GMT +1. The time now is 04:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"