+ Reply to Thread
Results 1 to 8 of 8

Microsoft Excel not formatting CSV file correctly

  1. #1
    Registered User
    Join Date
    02-22-2024
    Location
    London, England
    MS-Off Ver
    360
    Posts
    5

    Microsoft Excel not formatting CSV file correctly

    We are trying to open a CSV file with Microsoft Excel (2013 and 2016) on Windows Desktop. Unfortunately, excel is not formatting the file correctly: each row is in a new row as it should be, but all of the columns are in the same cell, and the values are displayed seperated by a comma( , ).



    The CSV file, as said above is separated by commas. Our computer's region is Turkey, which means semicolon ( ; ) separation by default; but following advice here and elsewhere we have changed our delimiter setting to comma in the region settings. However, the file is still not formatted correctly for some reason. It is not possible to create a new file and import the CSV there, as the original CSV file needs to be modified - and quite regularly. The issue persists on both our computers (one with Excel 2013 and the other Excel 2016). (If this is useful context, the file itself was created on the latest model MacBook Pro, local to the UK (the computer itself has 360, though the file was created using a java program without any Office programs involved)). How can we resolve this?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Microsoft Excel not formatting CSV file correctly

    First option to try would be to use Text to Columns with a comma as separator.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-22-2024
    Location
    London, England
    MS-Off Ver
    360
    Posts
    5

    Re: Microsoft Excel not formatting CSV file correctly

    I think I've just succeeded in attaching the aforementioned .csv file, hopefully, with this reply:
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-22-2024
    Location
    London, England
    MS-Off Ver
    360
    Posts
    5

    Re: Microsoft Excel not formatting CSV file correctly

    thank you so much for your reply! the issue is that we need to regularly update the ORIGINAL file, so that solution sadly does not apply in this case:/

  5. #5
    Registered User
    Join Date
    02-22-2024
    Location
    London, England
    MS-Off Ver
    360
    Posts
    5

    Re: Microsoft Excel not formatting CSV file correctly

    Attachment 860543

    Attachment 860543

    here's an image of what the file looks like, btw:

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Microsoft Excel not formatting CSV file correctly

    Instructions attached together with file opened/saved in Excel
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-22-2024
    Location
    London, England
    MS-Off Ver
    360
    Posts
    5

    Re: Microsoft Excel not formatting CSV file correctly

    hey TMS, thank you so much for your reply!! The issue is that we need to frequently update the original file, and not change the delimeter of the file itself, nor the file format (it should stay as a CSV), as it then needs to be used as part of a java program - so importing it into a new excel file is not an option. Also, note that we've changed the regional setting of the computer so that the system delimeter is comma ( , ) rather than semicolon now, but for some reason that doesn't help either...

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Microsoft Excel not formatting CSV file correctly

    I assumed that you wanted/needed the file in Excel. My mistake. You can open the file as described but then edit it and save it as .csv.

    Wouldn't you be better off just editing the file in a Text Editor?

+ 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. Replies: 1
    Last Post: 08-30-2017, 02:32 AM
  2. Cell linked to Microsoft MonthView Control not formatting date correctly.
    By jeffadvanced in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2016, 05:08 PM
  3. Replies: 2
    Last Post: 07-16-2016, 03:40 PM
  4. VBA formatting macro that worked in Excel 2010 is not working correctly in Excel 2013
    By jayar2112 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2015, 01:14 PM
  5. Microsoft excel cannot access the file C:\... The file name or path
    By HraHuuh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2012, 05:48 AM
  6. Excel Not formatting a file correctly
    By thomaseaton in forum Excel General
    Replies: 0
    Last Post: 08-28-2008, 01:40 PM
  7. Excel does not displaying formatting correctly
    By Cookie in forum Excel General
    Replies: 2
    Last Post: 04-24-2006, 10:00 AM

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