+ Reply to Thread
Results 1 to 6 of 6

Export to .txt with only 1 space

  1. #1
    Registered User
    Join Date
    04-26-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    21

    Export to .txt with only 1 space

    Hello

    I have a series of data that looks like this:

    A B
    20070301 000005;0.92106;1
    20070301 000010;0.92105;1
    20070301 000011;0.92105;1
    20070301 000017;0.921;1

    (Column A does change, just not for several hundred rows later)

    Currently, when I try to export this to a .txt. file, I get this:

    20070301 000005;0.92106;1
    20070301 000010;0.92105;1
    20070301 000011;0.92105;1
    20070301 000017;0.921;1

    but, I need it to be:

    20070301 000005;0.92106;1
    20070301 000010;0.92105;1
    20070301 000011;0.92105;1
    20070301 000017;0.921;1

    It can only be 1 space between column A and column B.

    I have tried a couple of other methods and it produced having no spaces between column A and B.

    does anybody have any suggestions?

    Thank you very much for your help!!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Export to .txt with only 1 space

    Looks same for me

  3. #3
    Registered User
    Join Date
    04-26-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Export to .txt with only 1 space

    oh, i should have previewed the post. the forum didn't except my multiple spaces.

    In short, the first had several spaces between and the second has only 1 space in between.

    I am attaching a screenshot of the .txt file.

    this is only a small sample of several files that literally total millions of excel rows.
    Attached Images Attached Images

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Export to .txt with only 1 space

    Maybe to add one more column as
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then print that column to txt?
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-26-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Export to .txt with only 1 space

    That was definitely a solution. Thank you very much

    I have never taken the time to learn how to create Macros - but this inspires me to take the time to learn it.

    Thanks!

  6. #6
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Export to .txt with only 1 space

    Are you sure that's not a TAB instead of spaces? The default delimiter between cells in excel is a tab.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Shift+Space and Ctrl+Space shortcuts intermittently working
    By yumyumdimsum in forum Excel General
    Replies: 8
    Last Post: 10-14-2017, 11:54 AM
  2. Replies: 4
    Last Post: 08-20-2013, 03:07 AM
  3. [SOLVED] If Cell Starts with a Space, remove that space
    By Ocean Zhang in forum Excel General
    Replies: 2
    Last Post: 09-29-2012, 01:52 PM
  4. replace double space with single space within a range
    By erikd80 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-05-2011, 01:20 PM
  5. Paper Space / Model Space ?
    By Coolboy55 in forum Excel General
    Replies: 0
    Last Post: 09-01-2005, 03:58 PM

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