troubleshooting Question

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

Avatar of Xbradders
Xbradders asked on
Microsoft OfficeMicrosoft ExcelMicrosoft Applications
4 Comments1 Solution9752 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 -
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
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 1 Answer 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