09-02-2026 02:13 PM
"Read Delimited Spreadsheet" works fine for plain numeric data... but croaks when trying to read string data that is surrounded by quotes containing a comma. For example the CSV file:
Date/Time,Value
"Aug 31, 2:00PM",42
would return 3 columns:
"Aug 31 | 2:00PM" | 42
Quick google hunt didn't find anyone haven written a package to do this. Sure, I can do it myself but I figured I'd take the lazy "maybe someone has already done it" approach first.
Solved! Go to Solution.
09-02-2026 02:23 PM - edited 09-02-2026 02:26 PM
@BowenM wrote:
"Read Delimited Spreadsheet" works fine for plain numeric data... but croaks when trying to read string data that is surrounded by quotes containing a comma. For example the CSV file:
Date/Time,Value"Aug 31, 2:00PM",42
would return 3 columns:
"Aug 31 | 2:00PM" | 42
Quick google hunt didn't find anyone haven written a package to do this. Sure, I can do it myself but I figured I'd take the lazy "maybe someone has already done it" approach first.
Everything is going to treat a comma as a separator in a file that is supposed to contain Comma Separated Values.
You could try setting the separator to " if that's what is actually separating the values in the file.
Otherwise post a sample of the data file you are working with maybe we can come up with a more elegant solution.
09-02-2026 03:03 PM
Yep. CSV stands for Comma Separated Value. Got it.
CSV standard allows for string fields to be enclosed in double quotes
"Aug 31, 2:00PM"
In those cases, every CSV parser in another language (Excel included) reads the comma enclosed in double quotes as part of the string field, not as a separator.
09-02-2026 03:57 PM
"robust" CSV on VIPM https://www.vipm.io/package/lava_lib_robust_csv/
09-02-2026 04:29 PM
Hunted VIPM, don't know how I missed it.
Thank you!!
09-03-2026 03:40 PM
@BowenM wrote:
In those cases, every CSV parser in another language (Excel included) reads the comma enclosed in double quotes as part of the string field, not as a separator.
Silly me didn't believe Excel was that smart... sure enough, it works as described! 😳