Why does my excel file grow when saving as CSV

I use SageOne.com as my Accounting package. Works for us. Has done since 2012.

I'm just catching up on some expenses and there is a CSV upload feature. So I downloaded the CSV template, added 31 lines (copying the lines down.

The resulting CSV ends up being 14MB:
14MB
If I save the same file as XLSX it goes to 11KB:
11KB
Save it back to CSV and its now 15MB!!!:
15MB
CSV File: Trainline.csv
XLSX File: Trainline2.xlsx

When I try to upload the CSV to Sage One it complains because the max file size is 0.5MB.

Any ideas folks?
Thanks
Mark
LVL 13
Mark GalvinManaging Director / Principal ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tmwestCommented:
They are different file formats.  The CSV is storing all the data as text, while Excel will store it in a proprietary binary format.  Excel is doing a better job of compressing the data in the file to make it smaller.
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
By exporting, you create a CSV with 14 MB, but you can't import that back - it is certainly bigger than 0.5 MB from start! Whether Excel adds some size or not does not matter then anymore ...
ThomasMcA2Commented:
The export added over 1 million lines of empty data, followed by 1 line of incomplete data. Here is a snippet from the end of your CSV:
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,
Inv,TRAINLINE,,Trainline.com Limited,,10023,Train Journey,,No VAT,0,,,,

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark GalvinManaging Director / Principal ConsultantAuthor Commented:
Thanks dude. I must have added that!!

Took it outm saved and its 3KB

Nice one!!!!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.