Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

120
Vistas
How to search google sheet data only from one column using google apps script webapp?

Im using this below method to search data from a google sheet using google apps scricpt. its working fine but can someone please tell me how to set search function to find data only from one column? for now it`s getting data related to keyword from whole data range. (Not expecting the change data range fix. I need to search keyword only in one column)

Reference site : https://www.bpwebs.com/create-web-forms-to-get-data-from-google-sheets/#index-file

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

function searchonecol() {
  const ss = SpreadsheetApp.getActive();
  const sh = ss.getSheetByName('SheetName');
  const sr = 2;//data start row
  const colnum = 1;//column number
  const haystack = sh.getRange(sr,colnum,sh.getLastRow() - sr + 1).getValues();
  haystack.forEach((r,i) => {
    if(r[0] == 'needle') {
      SpreadsheetApp.getUi().alert('you just found the needle in the haystack');
    }
  });
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda