Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default How to convert an excel sheet to txt with specific column size

Hi. I'm trying to convert an excel sheet to txt file but I need that the
columns have a specific size (lenght).

otherwise I have this:

column1 column2
151214521 20
152254 15

I I want this in on txt:

column1 column2
151214521 20
152254 15

Is it possible?

Regards,
marco
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to convert an excel sheet to txt with specific column size

It's difficult to see in your post, but you could use a helper column with
formulas like:

=left(a1&rept(" ",25),25) & left(b1&Rept(" ",6),6)

If you needed 25 characters in the first field and 6 in the second.

Then copy that formula down as far as you need
Copy that column
paste into NotePad
Save in notepad to the text file you want.

If you have time/dates/money that need special formatting, you can embed =text()
into each portion of the formula:

=left(text(a1,"$#,##0.00")&rept(" ",25),25) & ...

Marco wrote:

Hi. I'm trying to convert an excel sheet to txt file but I need that the
columns have a specific size (lenght).

otherwise I have this:

column1 column2
151214521 20
152254 15

I I want this in on txt:

column1 column2
151214521 20
152254 15

Is it possible?

Regards,
marco


--

Dave Peterson
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
Work sheet size relative to screen size Florida Tom Excel Discussion (Misc queries) 1 April 16th 07 03:22 AM
Finding Number of cells in a column of other sheet having a specific word in them [email protected] New Users to Excel 5 February 21st 07 02:51 PM
how to set sheet size to reduce file size LJ Excel Discussion (Misc queries) 1 November 26th 06 03:35 AM
How do I change column size for lower half of sheet? Varsil Excel Discussion (Misc queries) 7 January 20th 06 08:53 PM


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

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

About Us

"It's about Microsoft Excel"