title: Parse CSV in Google Spreadsheets
body: <p>I'm trying to automatically parse a CSV document into separate cells in Google Spreadsheets. I'm using the script below, however, it just presents the <code>,</code> separated value, whereas, I need those values appear in individual cells. Any ideas?</p>
  
  <pre><code>function importCSVFromWeb() {
    var csvUrl = "https://ctrlq.org/data.csv";
    var csvContent = UrlFetchApp.fetch(csvUrl).getContentText();
    var csvData = Utilities.parseCsv(csvContent);
    var sheet = SpreadsheetApp.getActiveSheet();
    sheet.getRange(1, 1, csvData.length, csvData[0].length).setValues(csvData); 
  }
  </code></pre>