Obter ajuda

Central de ajuda

Guias e respostas

Entre em contato com o suporte

Escrever para nossa equipe

Entrar no

Workflows

Criar processos com sua equipe

Automations

Conectar arquivos e automatizar tarefas

Um sistema, quatro partes

Agentes de IA

Funcionários virtuais que trabalham 24/7

Automations

Conectar arquivos e automatizar tarefas

Workflows

Criar processos com sua equipe

Data Space

Compartilhamento e controle de dados confiáveis

Soluções por departamento

Finanças

Relatórios, orçamentos e conciliações

Estoque e manufatura

Estoque, pedidos e produção em uma só visão

RH

Folhas de ponto, presença e avaliações

Gestão de projetos

Status e carga de trabalho entre projetos

Vendas e CRM

Leads e negócios sempre atualizados

Educação

Registros de alunos e dados da escola

Finanças

Transforme o trabalho financeiro manual em relatórios que se atualizam sozinhos.

O que as equipes de Finanças automatizam

  • Acompanhar contas a pagar e a receber
  • Criar demonstrações de fluxo de caixa
  • Comparar orçamento e realizado

Estoque e manufatura

Veja os níveis de estoque e automatize os pedidos.

O que as equipes de estoque e manufatura automatizam

  • Acompanhar o estoque em vários locais
  • Conectar dados de vendas, compras e armazém
  • Vincular um leitor de código de barras à sua planilha

RH

Gerencie recrutamento, presença e acompanhamento de OKRs a partir das suas planilhas.

O que as equipes de RH automatizam

  • Acompanhar recrutamento e integração
  • Registrar OKRs e resultados da equipe
  • Acompanhar entradas, saídas e licenças

Gestão de projetos

Atribua tarefas e acompanhe horas sem atualizações manuais.

O que as equipes de projetos automatizam

  • Atribuir tarefas e acompanhar mudanças de status
  • Estimar o esforço e registrar as horas trabalhadas
  • Acompanhar marcos entre projetos

Vendas e CRM

Acompanhe leads e desempenho de vendas com relatórios automáticos.

O que as equipes de vendas automatizam

  • Acompanhar e converter leads
  • Definir metas de vendas e acompanhar métricas da equipe
  • Monitorar KPIs de vendas em painéis

Educação

Automatize presença, notas e compras da escola.

O que as escolas automatizam

  • Acompanhar a presença e avisar os pais
  • Registrar e comparar as notas das turmas
  • Acompanhar o estoque emprestado a alunos e funcionários

Encontrar um caso de uso

Por departamento

Como cada equipe usa a Sheetgo

Por setor

Como cada setor usa a Sheetgo

Por tamanho da empresa

Pequena, média ou grande

Aprender

Blog

Guias e novidades do produto

Histórias de clientes

Como equipes como a sua usam a Sheetgo

Central de ajuda

Guias e respostas

Por que a Sheetgo

Comparar

Como a Sheetgo se compara a outras ferramentas

Segurança

Como protegemos seus dados

Centro de confiança

Detalhes da nossa conformidade

Entrar no

Workflows

Criar processos com sua equipe

Automations

Conectar arquivos e automatizar tarefas

Um sistema, quatro partes

Agentes de IA

Funcionários virtuais que trabalham 24/7

Automations

Conectar arquivos e automatizar tarefas

Workflows

Criar processos com sua equipe

Data Space

Compartilhamento e controle de dados confiáveis

Soluções por departamento

Finanças

Relatórios, orçamentos e conciliações

Estoque e manufatura

Estoque, pedidos e produção em uma só visão

RH

Folhas de ponto, presença e avaliações

Gestão de projetos

Status e carga de trabalho entre projetos

Vendas e CRM

Leads e negócios sempre atualizados

Educação

Registros de alunos e dados da escola

Encontrar um caso de uso

Por departamento

Como cada equipe usa a Sheetgo

Por setor

Como cada setor usa a Sheetgo

Por tamanho da empresa

Pequena, média ou grande

Comece a usar

Modelos

Fluxos de trabalho prontos para usar

Aprender

Blog

Guias e novidades do produto

Histórias de clientes

Como equipes como a sua usam a Sheetgo

Central de ajuda

Guias e respostas

Por que a Sheetgo

Comparar

Como a Sheetgo se compara a outras ferramentas

Segurança

Como protegemos seus dados

Centro de confiança

Detalhes da nossa conformidade

Central de ajuda

Guias e respostas

Entre em contato com o suporte

Escrever para nossa equipe

Workflows

Criar processos com sua equipe

Automations

Conectar arquivos e automatizar tarefas

Como usar a função SUMIF no Excel

People often use Microsoft Excel for highly sophisticated and complex calculations. At other times, you may just want to use Excel to add up certain data points. While the SUM function is perfect for doing just that, what happens when you don’t want to tally all the data in your spreadsheet? In that case, you can use the SUMIF function to tell your spreadsheet which data to add, and which to ignore.

Sintaxe

=SUMIF(range, criteria, [sum_range])
  • range is the group of cells you wish to add up
  • critérios is the characteristic that will decide whether or not each cell gets included. This can be an expression, number, cell reference, or text string
  • sum_range is an optional parameter that specifies the cells to add up. If left out, the default is to add up the cells in the range that meet the criteria

How to use the SUMIF Excel function

I’ll show some examples to demonstrate how to use the SUMIF Excel function to add up data in any way you want.

In the examples, I use data from a fictional department store, with sales numbers for different employees in various departments.

Critera with logical operator

Take a look at the first example below. I want to find the total number of sales by all employees who had more than $10,000 in sales.

Right away, you can see that I can’t simply add up the sales numbers in column C. Doing this would include the sales of employees who had less than $10,000 in sales.

I could manually select all the sales numbers that fit my criteria, but this would be time-consuming, especially in a large dataset. So instead, I type =SUMIF(C2:C11,">10000").

sumif excel 1

I use the greater than “>” logical operator in this example, but you can use any of the logical operators shown below.

Just make sure to put the criteria in quotation marks when using a logical operator.

sumif excel logical operators 2

Critera as text string

In the next example, I’ll show a different type of criteria. This time, I’m filtering the data based on the department in which the employee works.

Specifically, I want to determine the total sales of employees in the Food department. I achieve this with the formula =SUMIF(B2:B11,"Food",C2:C11).

sumif excel text string 3

There’s a couple of differences between these two examples. Firstly, the criteria in the second example is not numerical – it’s a text string. The function searches the range for the string “Food” and adds up all the sales of the corresponding cells.

That brings me to the second difference: because I’m adding up data from a different column than where I’m applying the criteria, I have to use the sum_range parâmetro.

Criteria as cell reference & multiple SUMIFs

Now I’ll show another way to specify your criteria: using a cell reference. Instead of typing out the department I want, I’ve just selected a cell that contains that department as my criteria parameter. This saves a bit of time compared to typing out the text string.

You’ll notice that I’m also using two separate SUMIF functions added together. The reason for that is in this example, I wish to find the total sales of the clothing and hardware departments. I can simply add two SUMIF functions together to achieve this, with the formula =SUMIF(B2:B11,B6,C2:C11) + SUMIF(B2:B11,B8,C2:C11).

Se o mesmo departamento aparece em muitas linhas e você quer um total para cada um, também pode combinar linhas no Excel.

sumif excel cell reference 4

Critérios concatenados

Now I’ll try something a bit more fancy. In the first example, I showed how to use logical operators to specify which cells to add. I’ll do the same thing here, but with a combination of a logical operator and a cell reference combined using concatenation.

This is useful in a spreadsheet that you’re using dynamically – for instance, if you want to quickly change the criteria by changing one cell, and have the function adjust automatically.

In this example, I want to find the total sales of all employees who had less than $9,000 in sales, but I want the spreadsheet to be dynamic so I can easily put a new number in cell F1 to change the criteria. I do this with the formula =SUMIF(C2:C11,"<"&F1).

sumif excel concatenate 5

Notice how I concatenated (combined) the F1 cell with the criteria in the function by using the & sign. Also note that I had to put quotation marks around the < sign, but not around the rest of the criteria.

Curingas

By now, you hopefully understand the basics of how the SUMIF function in Excel works. Which means it’s a good time for me to introduce wildcards.

You can use the wildcard characters * and ? within your criteria to indicate a match with any character (?) or any sequence of characters (*).

I’ll first give an example with the * wildcard. As I mentioned above, this wildcard is a stand-in for any characters. So if my critérios was just *, then any cells with data in them would qualify (only blank cells would be left out). That’s a good way to eliminate blanks in your dataset.

Another good use of the wildcard is shown in the example below. In this case, I want to get the total sales from all employees whose names end with “y”.

sumif excel 6

With the formula =SUMIF(A2:A11,"*y",C2:C11) I instruct Excel to add up all cells that meet the critérios of having any characters followed by a “y”. Note that the * wildcard represents any number of characters, so it doesn’t matter how long the name is as long as it ends in “y”.

Now I’ll contrast that with the ? wildcard. Similar to the * wildcard, this one is a stand-in for any character. The difference is that the ? can only represent a single character.

This example is a bit strange, but imagine I want the sales numbers from only the departments that end in “s”. On top of that, the department names also have to be 11 letters long. So instead of using the * wildcard, I use ? by typing =SUMIF(B2:B11,"??????????s",C2:C11).

sumif excel 7

As I mentioned before, you can use the * wildcard to filter based on blank cells. I’ll demonstrate that in the screenshot below.

sumif excel blanks 8

Por digitação =SUMIF(B2:B11,"<>*",C2:C11) I tell Excel to add up the data for all the cells that are blank. This can be handy in cases where the dataset is incomplete.

Obrigado pela leitura!

I hope you now have a good understanding of how you can use the Excel SUMIF function to customize your spreadsheet and use a simple formula to save you time!

Se quiser saber mais sobre as várias fórmulas do Planilhas Google, dê uma olhada em nossa postagem no blog sobre o DSUM formula in Google Sheets.

Você também pode gostar...

Função INDIRECT do Excel: logotipo do Excel e ícone fx acima de =INDIRECT em um fundo cinza-claro

Função INDIRECT (INDIRETO) do Excel: fórmula e exemplos

Use a função INDIRECT do Excel para transformar texto em uma referência de célula. Veja a sintaxe e exemplos com SUM, AVERAGE, ROW e outras planilhas.

Como arredondar números no Excel — ícone do Excel ao lado de .00 arredondado para .0

Como arredondar números no Excel com a função ROUND (ARRED)

Aprenda a arredondar números no Excel com ROUND, ROUNDUP e ROUNDDOWN (ARRED, ARREDONDAR.PARA.CIMA e ARREDONDAR.PARA.BAIXO), com qualquer número de casas decimais ou para o inteiro mais próximo.

Função FILTER do Excel — logotipo do Excel ao lado de um ícone de relatório com um funil vermelho sobre fundo azul

Função FILTER (FILTRO) do Excel com exemplos

Aprenda a usar a função FILTER (FILTRO) do Excel para filtrar dados por texto, número e data, com várias condições e junto com UNIQUE e SORT.