SUMIF function

Adds the cells that meet one condition.

Syntax

=SUMIF(range, criteria, [sum_range])
ArgumentWhat it means
rangeThe cells to check against the condition.
criteriaThe condition, such as "North" or ">500".
sum_range
optional
The cells to add. Leave it out to add the checked cells themselves.

Example

=SUMIF(B2:B20,"North",C2:C20)

Adds the sales in column C for every row where column B says North.

Try itType =SUMIF( in E2 and click cells to fill in the arguments.
E2
Click a cell, then type. Right-click for rows, columns, sort and filter.
A
B
C
D
E
F
G
H
I
J
K
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Item
Qty
Price
Date
Try here
Apples
12
$0.50
2024-01-15
Bananas
30
$0.25
2024-02-29
Cherries
8
$3.20
2024-04-30
Dates
15
$2.75
2024-07-27
Figs
5
$1.90
2024-12-01

Conditional formatting

A number, or a cell like =$H$1

AaBbCc 123

Rules on this sheet (0)

No rules yet. When several rules affect the same cell, the one higher in this list wins.

Find and Replace

Go To

Format Cells

Sample1234.5

No specific number format.

Insert Hyperlink

A cell reference like Sheet2!A1 links to a place in this workbook. Ctrl+click a link cell to open it.

New note · E2

Notes show as a red corner. Ctrl+Enter saves.

Insert Function

SUM(number1, [number2], …)
Adds numbers