My client works in the financial sector so he works with huge Excel files. On a daily bases my client needs to save a sheet to CSV that then gets imported to another application.<\/p>\n
Advertisement
The sheet consists of numbers, 3 columns and about 500 lines. My client saves the sheet to csv, and yes we tested with various options provided, then opens the csv in notepad, scrolls to the bottom of the file and finds that there is an additional blank line after the last row of data. I’ve tested this on 3 different systems and was able to recreate the issue.<\/p>\n
Is this an issue within Excel or is there a setting I’m missing? I should mention that my tests were all done on Windows 10 Pro systems with either Office 365 Pro or Office Home and Business 2013. Excel 2010 produced the same result.<\/p>\n
Your assistance is appreciated.<\/p>","upvoteCount":7,"answerCount":17,"datePublished":"2018-08-07T08:11:27.000Z","author":{"@type":"Person","name":"divanmohr","url":"https://community.spiceworks.com/u/divanmohr"},"suggestedAnswer":[{"@type":"Answer","text":"
I’m no Excel guru so please bare with me.<\/p>\n
My client works in the financial sector so he works with huge Excel files. On a daily bases my client needs to save a sheet to CSV that then gets imported to another application.<\/p>\n
The sheet consists of numbers, 3 columns and about 500 lines. My client saves the sheet to csv, and yes we tested with various options provided, then opens the csv in notepad, scrolls to the bottom of the file and finds that there is an additional blank line after the last row of data. I’ve tested this on 3 different systems and was able to recreate the issue.<\/p>\n
Is this an issue within Excel or is there a setting I’m missing? I should mention that my tests were all done on Windows 10 Pro systems with either Office 365 Pro or Office Home and Business 2013. Excel 2010 produced the same result.<\/p>\n
Your assistance is appreciated.<\/p>","upvoteCount":7,"datePublished":"2018-08-07T08:11:27.000Z","url":"https://community.spiceworks.com/t/excel-2016-save-as-csv/666292/1","author":{"@type":"Person","name":"divanmohr","url":"https://community.spiceworks.com/u/divanmohr"}},{"@type":"Answer","text":"
Most likely Excel thinks that there is something in that row when it’s exported. To be sure open the CSV in Excel, hit, Ctrl+End to go to the last row. If this after the dataset the highlight all rows between the last row of the dataset and where CTRL+End lands you and delete the rows then re-save and try again.<\/p>","upvoteCount":1,"datePublished":"2018-08-07T08:47:22.000Z","url":"https://community.spiceworks.com/t/excel-2016-save-as-csv/666292/2","author":{"@type":"Person","name":"liamsullivan","url":"https://community.spiceworks.com/u/liamsullivan"}},{"@type":"Answer","text":"
Does the import process ignore the last blank line in the CSV you are importing or does it import the blank line?<\/p>","upvoteCount":0,"datePublished":"2018-08-07T09:58:37.000Z","url":"https://community.spiceworks.com/t/excel-2016-save-as-csv/666292/3","author":{"@type":"Person","name":"rockn","url":"https://community.spiceworks.com/u/rockn"}},{"@type":"Answer","text":"
@SullyTech<\/span><\/p>\n
I tried that, no matter what I do the addition line right at the end remains.<\/p>\n
@ Rockn<\/p>\n
Importing the csv back into Excel ignores the blank line, importing the csv file into the other application fails due to the blank line.<\/p>","upvoteCount":0,"datePublished":"2018-08-07T11:33:00.000Z","url":"https://community.spiceworks.com/t/excel-2016-save-as-csv/666292/4","author":{"@type":"Person","name":"divanmohr","url":"https://community.spiceworks.com/u/divanmohr"}},{"@type":"Answer","text":"
divanmohr just for sake of ruling out the original file, can you try creating a new workbook and pasting the information into it, then exporting as a CSV. If that doesn’t work, rule out Excel and try the same process using LibreOffice as a test?<\/p>\n