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

107
Views
Ocultar filas con celda en blanco en la columna E

Soy muy nuevo en el uso de scripts en Hojas de cálculo de Google, pero encontré este código simple y útil en línea. Estoy tratando de ocultar filas en un rango específico (filas 10 - 34) donde las celdas en la columna E están en blanco. El siguiente código parece ocultar todas las filas del rango, incluso aquellas que tienen un número en la columna E.

Yo he tratado:

 data[i][3] = 'null', data[i][4] = 'null', data[i][5] = 'null'

¿Alguna idea de dónde me estoy equivocando?

Muchas gracias por cualquier ayuda.

 function filterRows() { var sheet = SpreadsheetApp.getActive().getSheetByName("Print Client Report"); var data = sheet.getDataRange().getValues(); for(var i = 9; i < 34; i++) { //If column E (5th column) is "Y" then hide the row. if(data[i][3] = 'null') { sheet.hideRows(i + 1); } } }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Ocultar filas donde la columna E es nula en las filas 10 a 34

 function filterRows() { var sheet = SpreadsheetApp.getActive().getSheetByName("Print Client Report"); var data = sheet.getRange(10, 1, 25, sheet.getLastColumn()).getValues(); data.forEach((r, i) => { if (!r[4]) { sheet.hideRows(i + 10); } }); }
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!