+ Reply to Thread
Results 1 to 2 of 2

Need to add comma to start of every row in CSV file

  1. #1
    Registered User
    Join Date
    12-18-2019
    Location
    Wisconsin
    MS-Off Ver
    2010
    Posts
    1

    Need to add comma to start of every row in CSV file

    I have a CSV file that is missing a comma in front of each row. I found a link somewhere a few weeks ago that worked great, now I can't find it again. It said to open up CSV file with excel, add column in front of column A. Then type a formula or something into box A1. Then when saving to CSV, that column would then be recognized as a delimited column. Hope this makes sense to somebody. It worked perfectly. Quick and simple.

  2. #2
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Need to add comma to start of every row in CSV file

    Hi Glen S,

    Welcome to the Forum,

    Assuming the CSV text is in Col A add 2 columns to the left of Col A.
    In the new A1 put a , (comma)
    In B1 enter A1&C1 and copy down
    Then select Col B, copy and paste special (into B1) and select Values.

    Haven't got your CSV file to test it on but it should work.

    Regards

    peterrc
    Last edited by peterrc; 12-18-2019 at 11:55 AM.

+ 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. Look up array in target file, then copy corresponding values back in start file
    By MrMyagiii in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2018, 05:39 AM
  2. Replies: 0
    Last Post: 05-25-2016, 10:36 AM
  3. Replies: 2
    Last Post: 06-09-2013, 07:21 PM
  4. Macro to convert comma delimited csv file to excel file??
    By sanjeevpandey in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-15-2012, 05:31 AM
  5. [SOLVED] How do I convert an excel file into a comma separated values file
    By Conquerer in forum Excel General
    Replies: 3
    Last Post: 08-17-2006, 04:25 PM
  6. Saving multi-tab excel file created from comma delimited text file
    By Marcus Aurelius in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2005, 01:20 PM
  7. Replies: 1
    Last Post: 05-03-2005, 06:06 PM

Tags for this Thread

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