⌨ Sintaxe
SUMIF(range,criteria,[sum_range])
Argumentos
range
(obrigatório)
— As células reais a serem adicionadas, se você quiser adicionar células diferentes daquelas especificadas no argumento de intervalo . Se o argumento sum_range for omitido, o Excel adicionará as células especificadas no argumento de intervalo (as mesmas células às quais os critérios são aplicados). Sum_range deve ter o mesmo tamanho e forma que o intervalo . Se não for, o desempenho poderá sofrer, e a fórmula somará um intervalo de células que começa com a primeira célula em sum_range , mas tem as mesmas dimensões que o intervalo . Por exemplo: intervalo intervalo_soma Células resumidas reais A1:A5 B1:B5 B1:B5 A1:A5 B1:K5 B1:B5
criteria
(obrigatório)
— The criteria in the form of a number, expression, a cell reference, text, or a function that defines which cells will be added. Wildcard characters can be included - a question mark (?) to match any single character, an asterisk (*) to match any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde ( ~ ) preceding the character. For example, criteria can be expressed as 32, ">32", B5, "3?", "apple*", "*~?", or TODAY(). Important Any text criteria or any criteria that includes logical or mathematical symbols must be enclosed in double quotation marks ( " ). If the criteria is numeric, double quotation marks are not required.
sum_range
(opcional)
— The actual cells to add, if you want to add cells other than those specified in the range argument. If the sum_range argument is omitted, Excel adds the cells that are specified in the range argument (the same cells to which the criteria is applied). Sum_range should be the same size and shape as range . If it isn't, performance may suffer, and the formula will sum a range of cells that starts with the first cell in sum_range but has the same dimensions as range . For example: range sum_range Actual summed cells A1:A5 B1:B5 B1:B5 A1:A5 B1:K5 B1:B5