title: getRange : Cannot convert Nan to Class
body: <p>I tried <strong>parseInt</strong> but i really don't know where is the right place to put it in the code : </p>
  
  <p>Here's the code : </p>
  
  <pre><code>function projectTime(QuelProjet) {
      var tabUsers = getUsersList();
      var ss = SpreadsheetApp.getActive();
      var ProjectSheet = ss.getSheetByName("Liste Projets");
      for (i = 1; i &lt; 13; i++) {
          //Nombre de jours du mois
          var date = new Date(i + "/01/" + year);
          var numProjects = getProjectNumber();
          var currentMonthSheet = getSheetByMonth(tabMonth[i - 1]);
          for (l = 0; l &lt; tabUsers.length; l++) {
              var firstLine = 1 + (l + 1) * 10 - 10 + (l + 1) * numProjects - numProjects;
              Logger.log("Fline " + l + " : " + firstLine);
  
              var QuelPro = parseInt(QuelProjet);
              Logger.log("Quelpro : " + QuelPro);
  
              var nbDays = getNbJours(date);
  
              var sommeproject = 0;
              var som1 = new Array(1000);
              for (k = 1; k &lt; nbDays + 1; k++) {
                  var Row = parseInt(firstLine + QuelPro);
  
                  Logger.log("Row  : " + Row + " QuelProjet : " + QuelPro);
                  var Column = k + 1;
                  Logger.log("Column : " + Column);
                  var range = currentMonthSheet.getRange(Row, Column);
                  som1[k] = range.getValues();
                  //sommeproject = sommeproject + currentMonthSheet.getRange(firstLine + QuelProjet, k + 1).getValues();
              }
          }
      }
      var sommeproject = 1;
      sommeproject = sommeproject + som1;
      return sommeproject;
  }
  </code></pre>
  
  <p>The problem is in this line : </p>
  
  <pre><code>var range = currentMonthSheet.getRange(Row, Column);
  </code></pre>
  
  <p><strong>QuelProjet</strong> is a argument that I put like an integer in the function* when i call it in the spreadsheet </p>
  
  <p>Thanks for your time</p>