title: Apps Script: Copy rows to another sheet without the headers/headlines
body: <p><strong>ISSUE:</strong> <br> I have 2 identical sheets and want to copy <strong>all non-empty rows from the first sheet to the second sheet</strong>. And this copying process should start at row 2 of column A of the first sheet. In other words, I do NOT want to include the headers/headlines in the copy.</p>
  <p><strong>ATTEMPTED SOLUTION:</strong> <br> The script below copies the whole first sheet (including the headers/headline) instead of starting to copy at row 2. I am pretty sure I am missing something and won´t be able to find it out, as I am still learning how to deal with Apps Script.</p>
  <p><strong>QUESTION:</strong> <br> Can somebody please correct the code below, so that it can <strong>copy</strong> only the <strong>non-empty rows</strong> from the first sheet to the second sheet and <strong>without the headers/headline</strong>?</p>
  <p>Thank you so much in advance. <br><br></p>
  <pre><code>function copyAndAddNewEntries() {
  
    var sourceSheet = SpreadsheetApp.openById('SOURCE_SHEET_ID').getSheetByName('SOURCE_SHEET_NAME')
    var sourceSheetrange = sourceSheet.getDataRange();
    var sourceSheetData = sourceSheetrange.getValues();
    var targetSheet = SpreadsheetApp.openById('TARGET_SHEET_ID').getSheetByName('TARGET_SHEET_NAME');
  
    targetSheet.getRange(targetSheet.getLastRow() + 1, 1, sourceSheetrange.getHeight(), sourceSheetrange.getWidth()).setValues(sourceSheetData);
  }
  </code></pre>