title: GetCell -> GetValue -> SetValue fails
body: <p>I want to make the below mentioned code working but it doesn't - nothing happens when I run it (also no error), that means the username (sUserName) doesn't get saved in the spreadsheet... And also I don't understand why the columns cant start with 2, 3, 4 (then the timestamp can stay in column #1) instead 1, 2, 3 - if so I get an error.</p>
  
  <p>Here is the code:</p>
  
  <pre><code> var userNameColumn = 1; //Column where the user name is written 
   var subTypeColumn = 2; //Column where the submitter type is written ex. "Requester"
   var sUserNameColumn = 3; //Column where the user name is saved
  
  function saveUserName() {
   var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
   var rows  = sheet.getDataRange();
   var numRows = rows.getNumRows();
  
  for (var i = 1; i &lt;= numRows; i++) {
  
   var userNameCell = rows.getCell(i, userNameColumn);
   var subTypeCell = rows.getCell(i, subTypeColumn);
   var sUserNameCell = rows.getCell(i, sUserNameColumn);
  
    if(sUserNameCell.isBlank() &amp;&amp; subTypeCell.getValue() === 'Requester') {
  sUserNameCell.setValue(userNameCell)
    };  
  
   }
  }  
  </code></pre>
  
  <p>Here is the link for my spreadsheet and code:</p>
  
  <p><a href="https://docs.google.com/spreadsheets/d/1kiLXxpM8KtQ8edauaiLPcq8fxNcID6mNKy3YBOvdzxU/edit?usp=sharing" rel="nofollow">Google Spreadsheet</a></p>