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

174
Visualizações
Multiple spreadsheets to master & master to back to the same sheets

I want to combine 40 different spreadsheets into one master sheet through referring to a only a specific tabs under these sheets (AS SPREADSHEETS CONATINS MULTIPLE TABS) Also want that the data in the master will only appear submit button is clicked I found so many script and tried them but they all are combining all tabs in the same spreadsheets Is there anyone who can help here ?

using these code :

function myFunctionCOMBINE() {

// ={FILTER({'Partial Data 1'!A2:G,"Data Tab 1 - Row "&ROW('Partial Data 1'!A2:A)}, ‘Partial Data 1'!A2:A<>"");
// FILTER({'Partial Data 2'!A2:G,"Data Tab 2 - Row “&ROW('Partial Data 2'!A2:A)}, ‘Partial Data 2'!A2:A<>"");
// FILTER({*Partial Data 3'!A2:G,"Data Tab 3 - Row “&ROW('Partial Data 3'!A2:A)}, ‘Partial Data 3'!A2:A<>"")}

 
//set variable
const masterSheet = "ASM-A30";
const masterSheetFormulaCell = "A2";
const ignoreSheets = ["Verified NDRx","Business Tracker","NDRX","PMT_EBx","PMT_EBx.","NDRx PMT Business Tracker.","Analysis"];
const dataRange = "A2:AA";
const checkRange = "A2:A" ;
//end set variables

const ss = SpreadsheetApp.getActiveSpreadsheet() ;

ignoreSheets.push(masterSheet) ;

const allsheets = ss.getSheets() ;

const filteredListofSheets = allsheets.filter(s => ignoreSheets.indexOf(s.getSheetName()) == -1);

let formulaArray = filteredListofSheets.map(s => `FILTER({'${s.getSheetName()}'!${dataRange},"${s.getSheetName()} - Row "&ROW('${s.getSheetName()}'!${dataRange})}, '${s.getSheetName()}'!${checkRange}<>"")`);
let formulaText = "={" + formulaArray.join(";")+ "}"

//console.1og( formulaText) ;
ss. getSheetByName(masterSheet).getRange(masterSheetFormulaCell) .setFormula(formulaText) ;

}
about 4 years ago · Juan Pablo Isaza
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