+ Reply to Thread
Results 1 to 5 of 5

Importing CSV text file - missing data due to long text cells

  1. #1
    Registered User
    Join Date
    07-19-2021
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    10

    Importing CSV text file - missing data due to long text cells

    I'm having an issue importing a CSV that contains multiple fields (columns) and rows of data. One field contains comments. Some of the comment cells contain very long text. I noticed that the rows that have these long text comments cause the cells to the right of it to not load, even though there is data for those cells in the CSV file.

    I tried to use the import wizard to not load the comments field at all but it still causes the cells to the right of where the comment field used to be to not load. I also tried to mark the column as a Text field but that also didn't work.

    Essentially, I'm trying find rows that are missing values for a specific field. Unfortunately, that field is to the right of the comments field which is now giving me incorrect data when sorted.

    Is there any way around this or another application that can load such data without ignoring cells after it?


    EDIT** Sorry I'm new to this and didn't know how to attach, you'll find a duplicate post of the attachments below. My apologies.

    I attached two files as requested. The CSV which contains the data. You'll see that the first line has a very long text field for comments but there is a delimiter at the end and the Path field and Text field is present.
    When importing, the file should be Unicode UTF-8 and the delimiter is ÿ (Ascii 0255).

    The second file is the result after importing the CSV. You'll notice that the Path and Text field have no data for the first row, even though the data exists in the CSV.
    Attached Files Attached Files
    Last edited by MTR_Davies; 02-07-2022 at 01:29 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,671

    Re: Importing CSV text file - missing data due to long text cells

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-19-2021
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    10

    Re: Importing CSV text file - missing data due to long text cells

    I attached two files as requested. The CSV which contains the data. You'll see that the first line has a very long text field for comments but there is a delimiter at the end and the Path field and Text field is present.
    When importing, the file should be Unicode UTF-8 and the delimiter is ÿ (Ascii 0255).

    The second file is the result after importing the CSV. You'll notice that the Path and Text field have no data for the first row, even though the data exists in the CSV.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,817

    Re: Importing CSV text file - missing data due to long text cells

    Perhaps converting the .csv file to an .xlsx file using Power Query would allow you to deselect the comments field and get the data in the Path and Text fields.
    Here is a link to a video produced by an instructor at Highline College that may help: https://www.youtube.com/watch?v=pMQK1Zcc9jw&t=24s
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Importing CSV text file - missing data due to long text cells

    A quick Power Query fixes it:

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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 data from text file
    By oconee1985 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2021, 05:35 PM
  2. [SOLVED] importing data from text file
    By askhari139 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2013, 01:36 PM
  3. Importing a text file to an existing sheet, with a dialog to pick the text file
    By titushanke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2011, 01:43 PM
  4. Excel importing text file as one long row
    By lhouk in forum Excel General
    Replies: 7
    Last Post: 03-04-2009, 01:10 PM
  5. Importing data from a text file
    By jbaranski in forum Excel General
    Replies: 3
    Last Post: 08-01-2006, 10:10 AM
  6. Replies: 0
    Last Post: 01-18-2006, 04:01 PM
  7. Importing data from text file
    By tushar_johri in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2006, 05:19 AM

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