title: How to skip lines and write to certain cells in a spreadsheet program using Python
body: <p>I need to pull data from a database using SQL and then write that data to an Excel spreadsheet using Python. I have to skip the first two rows and the print to certain cells including two that include certain dates. Below these cells will be the headers and then the data itself.</p>
  
  <p>This is what it should look like in the spreadsheet program:</p>
  
  <blockquote>
    <p>|_____________|_____________|_________|_____________|</p>
    
    <p>|_____________|_____________|_________|_____________|</p>
    
    <p>| DAILY________| PRODUCT___| BUILD:___|_____________|</p>
    
    <p>| Between______| 01-Mar-2017__| and______| 31-Mar-2017__|</p>
  </blockquote>
  
  <p>How do I skip those first 2 lines in the spreadsheet and how do I print to certain cells with a break to go to the next row?</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>    wb2 = RV.open_excel()
      RV.add_sheet_excel(['PRODUCT_CODE','PACKLIST_ID','PART_ID',
                                'QTY','UNIT_PRICE','VALUE'], wb2, 'Sheet 1')
  
  
      rep_view.multiLineOutput2(curs,sSQL=SQL20,justLen=[20,15,20,5,9,10],
      colFormat = ['S','S','S','Q','d','d'], V_TotalFormat=['N','N','N','N','N','N'],
      extraColFormular=[], TotalZeroRowSkip=False, nullChar='0',
      hideColumn = ['N','N','N','N','N','N'], wb = wb2, sheetTitle = 'Sheet1')
      rep_view.save_excel(wb2, FILE2)
  </code></pre>