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

221
Visualizações
Script to calculate a total and then merge cells into one in column 'c' if column 'a' has the same date (Using for timesheet)

Column A = Date (so there could be multiple rows for the same day but different times) Column B = Time spent (number) Column C = Will be the total of all cells in column 'B' if has the same date in column 'A'

So I'm looking to automatically merge the cells in column C if the date is the same in column 'A' so I have one merged cell with the day total hours using a Google Apps script

Any help would be much appreciated

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

0

I do not recommend merging cells. It is doable, but you must use a script. Here is a solution with a simple formula:

=QUERY( {arrayformula(int(A2:A)),B2:B},"select Col1, sum(Col2) where Col2 is not null group by Col1 label Col1 'Date', sum(Col2) 'Total hours'",0)

enter image description here

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