Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

csv with embedded commas???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
misscrf - 26 Jan 2007 04:19 GMT
I have a csv.  There are no text " delimiters.  I am trying to validate
the parsing, but within some fields there are embedded commas.  This is
in fields that have things like an email where it might say:

2/24/2006,1:23PM,Smith, John <johnsmith@gmail.com>,next field,next
field,etc

I can't seem to figure this out.  Can anyone help me to get this to
parse right?

Thank you,
NickHK - 26 Jan 2007 05:35 GMT
The best solution would be to correct the output file to delimit the text
fields correctly, otherwise how can you know which commas are delimiters and
which are actually text ?

If this is not possible and the format is consistent, maybe:
-Find the first "PM"
-Find the first "<", assuming it cannot appear in the name
-Take everything between the 2 values above to be the name.

NickHK

> I have a csv.  There are no text " delimiters.  I am trying to validate
> the parsing, but within some fields there are embedded commas.  This is
[quoted text clipped - 7 lines]
>
> Thank you,
misscrf - 26 Jan 2007 13:58 GMT
Thanks for the reply.  Unfortunately, I have no control over the
output.  I wish I did! lol.

I think I am going to start from scratch as the file was less of a mess
when I started cleaning it up, vs now.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.