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

113
Vistas
Looping through URL list in the sheet against cell value in another spreadsheet

Is anyone able to help me? I have a spreadsheet which includes a sheet with list of URL's of files in my google drive. Now I need to move the data from another spreadsheet to these files considering that the data is mixed and I need a loop to check the cell value against file name. Hours of googling did not give me any idea.

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

0

Perhaps this will help

function moveDatatolistoffileurls() {
  const ss = SpreadsheetApp.getActive();
  const sh = ss.getSheetByName("Your Sheet Name");
  const [hA, ...vs] = sh.getDataRange().getValues();//assume one header row
  let col = {};
  hA.forEach((h, i) => { col[h] = i + 1; })
  vs.forEach((r, i) => {
    let s = SpreadsheetApp.openByUrl(r[col["url header string"]]);
    if(s.getName() == r[col["file name header"]]) {
      s.getSheet()[0].appendRow(r);
    }
  })
}

If you want a better answer then ask a better question.

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