+ Reply to Thread
Results 1 to 4 of 4

Importing blank cells form .txt

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    England
    MS-Off Ver
    2013
    Posts
    2

    Importing blank cells form .txt

    Hello,

    I have to import data form .txt file that goes like this:

    XXX | YYY | 111 | aaaa
    | | | zzzz
    | | | xccc
    AAA | zzz | 222 | qqqq

    After importing and using "|" as separator, my Excel 2013 seems to "ignore" blank cells, and, in this example, "zzzz" is in row 2 col 1 instead of being in row 2 col 4, "xccc" in row 3 col 1 (proper localization: row 3 col 4), and so on. Is it possible to do those things as I desired by formulas/vba script?
    Thank you in advance.
    Last edited by NoZZ; 08-10-2017 at 04:57 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,249

    Re: Importing blank cells form .txt

    Try importing it without specifying a separator, and then use the text to columns feature.

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    1
    Before: After:
    2
    3
    XXX | YYY | 111 | aaaa XXX YYY
    111
    aaaa
    4
    | | | zzzz zzzz
    5
    | | | xccc xccc
    6
    AAA | zzz | 222 | qqqq AAA zzz
    222
    qqqq
    Sheet: Sheet1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-10-2017
    Location
    England
    MS-Off Ver
    2013
    Posts
    2

    Re: Importing blank cells form .txt

    Hey, thanks for reply, but I've encountered another problem. In this example (see the screen), "ssssssss" is in the line below, i.e. it should be in the same row as XXX| YYY | 111 | aaaa |. How to solve this, because method you mentioned actually works, but of course not utterly with that sort of imported text.
    xxxxx.png
    Last edited by NoZZ; 08-10-2017 at 05:41 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,249

    Re: Importing blank cells form .txt

    Provide the sample data - I can't work with a picture of it!

+ 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. Importing HTML 'blank' [cells] to a spreadsheet
    By lotusman in forum Excel General
    Replies: 4
    Last Post: 06-24-2017, 07:11 PM
  2. Replies: 1
    Last Post: 05-05-2014, 02:31 PM
  3. [SOLVED] Pulling Numeric Values into Form's ComboBox without Blank cells
    By Southfish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2012, 01:51 AM
  4. Importing cells data from excel to PDF form
    By raw_geek in forum Excel General
    Replies: 0
    Last Post: 04-24-2012, 03:23 PM
  5. Importing data, and removing blank cells
    By pauls in forum Excel General
    Replies: 5
    Last Post: 03-05-2009, 03:54 PM
  6. Replies: 1
    Last Post: 01-15-2007, 05:21 PM
  7. Validating non-blank cells in Excel 'form'
    By cboyko in forum Excel General
    Replies: 2
    Last Post: 04-12-2006, 02:25 PM

Tags for this Thread

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