ExcelFormulas logoExcelFormulas.
Perguntar à IA
Matemática e EstatísticaTestado por QA

SOMASES (SUMIFS).

Soma as células em um intervalo que atendem a múltiplos critérios ou condições.

Matemática e Estatística
ExcelExcel 365Excel 2021Excel 2019Google Sheets

Como funciona na prática.

SOMASES é uma função essencial no Excel. Soma as células em um intervalo que atendem a múltiplos critérios ou condições. Facilita a automação de relatórios, otimiza consultas de dados e garante máxima produtividade no seu fluxo de trabalho.

💡 Em termos simples.

Adds up all numbers in a range that meet one or more conditions (e.g., adding sales only for West region and Apple product).

Analogia do Dia a Dia

"Think of this like a smart piggy bank. It only adds up coins that match all your criteria (like only summing quarters that are shiny)."

Sintaxe.

Notação Oficial do Excel
=SOMASES(intervalo_soma; intervalo_critérios1; critérios1; [intervalo_critérios2; critérios2]; ...)
Dica: Argumentos entre colchetes [como_este] são opcionais; todos os outros são obrigatórios.

Argumentos.

Confira abaixo o detalhamento de cada parâmetro aceito por esta função.

sum_rangeObrigatório

The range of cells to sum.

Exemplo: C2:C6
criteria_range1Obrigatório

The first range evaluated with the criteria.

Exemplo: A2:A6
criteria1Obrigatório

The condition that must be met in criteria_range1.

Exemplo: "Fruit"
criteria_range2Opcional

The second range evaluated.

Exemplo: B2:B6
criteria2Opcional

The second condition that must be met.

Exemplo: ">100"

Exemplo passo a passo.

Cenário de Aplicação

Filter & Sum Regional Sales

Sum the Total Sales of a specific Product in a specific Region.

RegionProduct NameSales AmountQuery RegionResult Total
WestApple1200West—
EastOrange950Apple—
WestOrange800——
Fórmula Aplicada
=SUMIFS(C2:C6, A2:A6, "West", B2:B6, "Apple")
Resultado Esperado::Calculated output

Evaluates SUMIFS over the sample table cells, placing the verified output in cell E2.

Gerador de fórmula.

Abrir Assistente Completo

Preencha os campos abaixo para gerar uma fórmula pronta para copiar e colar na sua planilha.

Generated FormulaPronta para copiar

Comportamento do resultado.

Returns "Calculated output" based on sample evaluation criteria and active cell references.

Amostra de Saída::Calculated output
Tipo de Dado::Text

Boas Práticas

  • You can use logical operators (e.g. ">100", "<=50") and wildcards (e.g. "App*", "*east*") inside your criteria.
  • Lock all range parameters with `$` so you can drag the formula down without shifting lookup ranges.

Erros Mais Comuns

  • The sum_range and all criteria_range parameters MUST be identical in shape and dimensions, or SUMIFS will return a #VALUE! error.
Matriz de Compatibilidade

Compatibilidade de software e versão.

Validação técnica fundamentada nas especificações oficiais da Microsoft e do Google.

Excel✓
Compatível
Excel 365✓
Compatível
Excel 2021✓
Compatível
Excel 2019✓
Compatível
Google Sheets✓
Compatível
Histórico e Versões do Excel

Core standard function supported across all modern and legacy Microsoft Excel versions (365, 2021, 2019, 2016, 2013, 2010), as well as Excel for the Web and Mac.

Notas sobre o Google Planilhas

100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.

Perguntas frequentes.

Dúvidas Técnicas
What is the difference between SUMIF and SUMIFS?↓

SUMIF supports only one condition and puts the sum_range last: =SUMIF(range, criteria, [sum_range]). SUMIFS supports up to 127 criteria pairs and places the sum_range first: =SUMIFS(sum_range, criteria_range1, criteria1, ...).

Why does SUMIFS return 0 instead of the expected total?↓

SUMIFS requires ALL conditions to be met simultaneously (AND logic). If no single row satisfies all criteria, it returns 0. Also verify that numeric comparison operators are quoted (e.g., ">100" instead of >100).

Do criteria ranges in SUMIFS need to match the sum range dimensions?↓

Yes. Every criteria_range in SUMIFS must have the exact same number of rows and columns as the sum_range; otherwise, Excel will return a #VALUE! error.