Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

118
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda