Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
¿Cómo puedo usar el rango de una función personalizada sin cotización?

Quiero usar =GETLASTROW(A1:A10)

en lugar de =GETLASTROW("A1:A10")

Quiero obtener el último número de fila de un rango específico que tiene valores en él...

Aquí está mi función personalizada ¿Pueden actualizar esto? 👇👇👇

 /** * Get the last row counts with the blank cells included for a specific range selected. * * @param {A1:A10} range -->Enter the column number to count on. * * @customfunction */ function GETLASTROW(range) { var ss = SpreadsheetApp.getActive().getActiveSheet(); var rg = ss.getRange(range).getValues(); var lrindex; for(var i = rg.length-1;i>=0;i--){ lrindex = i; if(!rg[i].every(function(c){ return c == ""; })){ break; } } return lrindex + 1; }

si hiciste esto, por favor respondeme actualizando mi código...

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Bienvenido a SO, no puede usarlo así GETLASTROW(A1:A10) aquí A1:A10 no es un tipo que JS sepa que necesita usar uno de los tipos de JavaScript como String, Array, Object , creo que los objetos son lo más parecido a su ejemplo puede llamar a la función como esta GETLASTROW({A1:"A10"}) .

Entonces puedes usarlo así.

 GETLASTROW({A1:"A10"}) function GETLASTROW(rangeObject){ var range = rangeObject["A1"] // the value of this will be A10 }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!