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

358
Visualizações
Excel : Look up concatenate with aggregation (sum)

I have an excel issue which I try to solve with "classic" excel formulas. I know my problem can be solved using Dax in Power Pivot but I don't want to use it in this case.

enter image description here

So as you can in the screenshot above, for each Key I'm trying to extract lot numbers and sum the units for the given lot matching that Key. Bear in mind that for each key, a lot can appear multiple times and in this case I would like to show the lot once with the sum of quantity.

I have been able to extract the lot numbers for a given Key, nevertheless as the lot number can appear in multiple records for a given key, I have multiple times the lot with different quantities. Ex : in the cell N4 => LOT1(15), LOT1(15) whereas I would like LOT1(30).

Do you have an idea to solve this in excel formulas without using Macro & Dax ?

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Use FILTER to get the list of Unique lots and then use that in a SUMIFS inside the TEXTJOIN:

=LET(k,[@Key],
    ky,RawDataTest[Key],
    lt,RawDataTest[Lot],
    u,RawDataTest[Units],
    unq,UNIQUE(FILTER(lt,ky=k,"999")),
    IF(ISERROR(MATCH("999",unq,0)),TEXTJOIN(", ",TRUE,unq&"("&SUMIFS(u,ky,k,lt,unq)&")"),""))

enter image description here

about 4 years ago · Santiago Trujillo 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