+ Reply to Thread
Results 1 to 11 of 11

Saving CSV file - Missing Delimiters

  1. #1
    Registered User
    Join Date
    03-21-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    69

    Saving CSV file - Missing Delimiters

    Hi, so I'm trying to edit a CSV file to add multiple users in order to import them to my site. But, after editing it, it's not saving the text-delimiters that originally came with it.

    For example:
    Please Login or Register  to view this content.
    changes to:
    Please Login or Register  to view this content.
    Does anyone know what can be done to format it correctly to look like:

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,489

    Re: Saving CSV file - Missing Delimiters

    You're asking this as an Excel question, which implies you are opening the file in Excel, editing it, and saving it as a csv file.

    Why not just edit it in Notepad, Wordpad, or MS Word?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-21-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    69

    Re: Saving CSV file - Missing Delimiters

    Quote Originally Posted by TMS View Post
    You're asking this as an Excel question, which implies you are opening the file in Excel, editing it, and saving it as a csv file.

    Why not just edit it in Notepad, Wordpad, or MS Word?

    Regards, TMS
    Hi TMS,

    The reason why I'm editing this in Excel is because I had a long list of emails (about 200) and needed to create accounts for all of those emails. To make it more efficient for myself I used the formula: =LEFT(G1,FIND("@",G1)-1) to grab the first part of all the emails and copy the values over to the username/display name columns, rather than cutting and pasting it manually in the CSV via Notepad. I also wanted to reuse information like "s2member_level1","15mber","11/30/-0001" and the default (password) column.

    I was able to quickly manipulate all the information I wanted, but when saving the CSV file, it came out with the aforementioned incorrect formatting.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Saving CSV file - Missing Delimiters

    What program produced the CSV file with all the "" marks? In a normal CSV file, these "" are not delimiters. The COMMAS are the delimiters. "" in Excel are usually used to surround TEXT within a FORMULA and are not usually for display. If what you show is what you want then I agree with TMS in that Excel is not the program to use.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,489

    Re: Saving CSV file - Missing Delimiters

    Typically, you only get quote delimiters around text if the text contains the delimiter. For example, if you have a name and address file and you have multiple address parts in one cell separated by commas.

  6. #6
    Registered User
    Join Date
    03-21-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    69

    Re: Saving CSV file - Missing Delimiters

    Quote Originally Posted by newdoverman View Post
    What program produced the CSV file with all the "" marks? In a normal CSV file, these "" are not delimiters. The COMMAS are the delimiters. "" in Excel are usually used to surround TEXT within a FORMULA and are not usually for display. If what you show is what you want then I agree with TMS in that Excel is not the program to use.
    The CSV was actually created by myself in Notepad, following s2member's template of how to import a user. So if Excel isn't the correct program to use, do you have any suggestions on a program I could use it to make it into the correct format?

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Saving CSV file - Missing Delimiters

    What are you importing into? A "full" picture of what exactly you are trying to do would certainly be of help in trying to solve your problems.

    I have imported and exported contacts into and out of several email programs and databases and have never run into the requirement of having both quotation marks and a comma for any field. In cases where there were commas within fields, those commas had to be replaced with a different character.

    It appears that there really isn't a standard for a CSV and there are a few variations produced by some programs.

    I did a search and came up with this http://support.microsoft.com/en-us/kb/2511178 for CSV files generated by Safe Pay. Is this what you are dealing with?

    In addition, Open Office's Calc program is reported to insert Quotation Marks along with a Comma upon export as a CSV.

    Seeing that Open Office is a free program, you might want to download it and try the Calc program that is included as it seems to export in the format that you are using. It might be safe to assume that it will also import in the same format as it exports.
    Last edited by newdoverman; 04-05-2015 at 03:47 PM.

  8. #8
    Registered User
    Join Date
    03-21-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    69

    Re: Saving CSV file - Missing Delimiters

    Quote Originally Posted by newdoverman View Post
    What are you importing into? A "full" picture of what exactly you are trying to do would certainly be of help in trying to solve your problems.

    I have imported and exported contacts into and out of several email programs and databases and have never run into the requirement of having both quotation marks and a comma for any field. In cases where there were commas within fields, those commas had to be replaced with a different character.

    It appears that there really isn't a standard for a CSV and there are a few variations produced by some programs.

    I did a search and came up with this http://support.microsoft.com/en-us/kb/2511178 for CSV files generated by Safe Pay. Is this what you are dealing with?

    In addition, Open Office's Calc program is reported to insert Quotation Marks along with a Comma upon export as a CSV.

    Seeing that Open Office is a free program, you might want to download it and try the Calc program that is included as it seems to export in the format that you are using. It might be safe to assume that it will also import in the same format as it exports.
    Here's a picture of what I'm importing into:
    \1

    The extra quotation marks and commas I have in the example are required to grant additional permissions for the users. Thanks for the suggestion, I'll give the Calc program a try.

    EDIT: Just tried the Calc program, same thing occurs, it's still removing the delimiters when saving like Excel. I guess I don't really have a choice but to do this manually for all 200 emails...
    Last edited by prvimoon; 04-05-2015 at 06:14 PM.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,489

    Re: Saving CSV file - Missing Delimiters

    You CAN use Excel to generate your data. You can put static data in four cells and name them static1, static2, static3 and static4.

    If the email address is in, say, cell A7, in B7 you put your formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And, in cell C7, you put the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The static values will need a single quote at the beginning to avoid Excel removing the double quotes.

    Copy JUST the generated values in column C and paste them into a Notepad text file. If necessary, change, the .txt extension to a .csv extension. Import the generated text/csv file into your application.

    See the examples attached.


    Regards, TMS
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-21-2014
    Location
    USA
    MS-Off Ver
    Office 2016
    Posts
    69

    Re: Saving CSV file - Missing Delimiters

    Quote Originally Posted by TMS View Post
    You CAN use Excel to generate your data. You can put static data in four cells and name them static1, static2, static3 and static4.

    If the email address is in, say, cell A7, in B7 you put your formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And, in cell C7, you put the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The static values will need a single quote at the beginning to avoid Excel removing the double quotes.

    Copy JUST the generated values in column C and paste them into a Notepad text file. If necessary, change, the .txt extension to a .csv extension. Import the generated text/csv file into your application.

    See the examples attached.


    Regards, TMS
    Thank you so much TMS!

    This works like a charm!

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,489

    Re: Saving CSV file - Missing Delimiters

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Input Text file Missing Delimiters after Export
    By karthik123qwe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-24-2012, 07:14 AM
  2. [SOLVED] Missing Formula after saving file
    By dannybstein in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2012, 11:59 AM
  3. Different numer of delimiters at end of csv-file
    By susannedybdahl in forum Excel General
    Replies: 0
    Last Post: 02-26-2010, 10:18 AM
  4. Save as prompt missing saving a .csv file
    By bdw in forum Excel General
    Replies: 1
    Last Post: 05-09-2006, 05:15 PM
  5. saving an excel file as an ASCII text file without delimiters
    By Sewellst in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2005, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1