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

230
Visualizações
How to create Google Sheets Macro/Apps Script to Open Newly Added File and Copy Data to Master?

I would like to create an automatic process with Apps Script to trigger on newly added excel files in Google Drive, open them, and copy the new data and append it to last row in the Master Google sheet.

The data would also need to be manipulated a bit as it comes in the format below. There will be several blocks like this for every vehicle. I would like the script to populate the vehicle # in each of the rows of available data for that vehicle in a separate column, in this case 6 rows. Then copy the data between rows labeled VEHICLE and VEHICLE TOTALS and paste it into the last row of the Master google sheet.

Data Table Example:
Data Table Example

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This looks to have a lot of working parts, so it'd be hard to cover in one response. But here's how I'd go about it...

  1. Create a trigger
  2. Scan the folder to find docx file
  3. Convert docx file to Google Doc
  4. Pull data from doc file to sheet
  5. Manipulate data accordingly Write to appropriate location

Create a trigger - This might be the hardest part. I don't think dropping it into a directory can trigger a script. Instead, you can have your scripts timed, trigger them manually, or trigger based on an event within another G Suite document (sheet, docs, forms, etc.) Maybe you can just create a Google Form that you upload the file to?

Scan the folder to find docx file - Once it's somewhere in your GDrive and you've trigger a script, you can find it using the Folder and Folder Iterator classes

Convert docx file to Google Doc - Looks pretty straightforward Docx to Google Doc using Google Script

Pull data from doc file to sheet - A combination of the Document class, Spreadsheet class, and Google Script programming know-how.

Manipulate data accordingly & Write to appropriate location - Same as above.

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