troubleshooting Question

Excel - Export to CSV is returning extra commas at the end lines

Avatar of Xbradders
Xbradders asked on
Microsoft ApplicationsMicrosoft OfficeMicrosoft Excel
4 Comments2 Solutions9752 ViewsLast Modified:
I have an Excel doc that needs to be exported to CSV text file, to be imported into a database.  When I export to CSV nearly every line has extra commas at the end, which need to be removed.  I believe it is adding these to match the column number of the largest row in my Excel doc.  I don't have a fixed number of column headers though, so I don't want these extra columns.  e.g., so rows my have data in 4 columns, where some may have 5, 6, 7, or 8 columns with data.

Any idea how to export without these?  I'm trying to avoid having to manually remove them from the exported CSV.  Thanks -
Paul Sauvé

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros