title: How to use .getRange(x,y,n,m) in google sheets with row and column numer like variables?
body: <p>I defined two variables called "filas" and "columnas". In that cells, I use a formula to get the number of rows and columns that are not empy. So, I want to use .getRange to obtain data from a table, but it doesn't fuction using the number of rows and colums like variables .getRange(2,2,filas,columnas).
  How can i solve this?</p>
  
  <p><code>var values = SpreadsheetApp.getActiveSheet().getDataRange().getValues();
   var filas= values[0][1];
   var columnas= values[1][0];</code></p>
  
  <p><code>var sigla1 = SpreadsheetApp.getActiveSpreadsheet().getRange(2,2,filas,columnas).getValues();</code></p>
  
  <p>Thanks!</p>