Skip to main content
← All functions

SUMIFS worksheet practice

Adds all of its arguments that meet multiple criteria.

Try SUMIFS

Sum between two dates and include the whole end day

=SUMIFS(C2:C10,B2:B10,">="&E2,B2:B10,"<"&(E3+1))

E2 and E3 are numeric, date-only report parameters: November 2 through November 4, 2026, both included. Use two criteria on the same timestamp range: ">="&E2 and "<"&(E3+1). The next-day exclusive boundary includes midnight, noon and 23:59:59 on the end date. The eligible amounts are 40 + 15 + 8 - 6 + 11 + 0 = 68; the pre-start row, next-day midnight and missing date are excluded. Using "<="&E3 instead gives 63 because it misses the end-day afternoon and refund; using "<="&(E3+1) wrongly includes next-day midnight and gives 97. Numeric zero is valid, and a refund reduces the total. Column A is readable text only; B contains actual numeric timestamps. Convert and validate imported text dates before applying the formula. Keep E2 <= E3 and both parameters free of time fractions. If the upper parameter is already an exclusive timestamp, compare directly to it without adding a day; this formula does not convert time zones.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

SUMIFS · top-level call

=SUMIFS(C2:C10,B2:B10,">="&E2,B2:B10,"<"&(E3+1))

1 / 5 · sum_range

The range of cells to sum.

SUMIFS reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

Loading your interactive spreadsheet…

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

SUMIFS worked examples

Compare a regional total with an escaped-label exclusion. Read each formula alongside its source data and expected result, then open it in the worksheet.

Total paid amounts from one region

Total paid amounts from one region. The result is checked against a separately authored expected value for the supplied table. You can edit the data to explore the rule.

=SUMIFS(A2:A6,C2:C6,"East",E2:E6,"Paid")
Source inputs: Playground
AmountLabelRegionDate serialStatus
12"Harbor""East"46296"Paid"
25"Cedar""West"46301"Pending"
-5"Harbor""East"46310"Paid"
18"Lumen""East"46326"Paid"
0Empty cell"West"46327"Paid"

Quotes distinguish text inputs from numbers; Empty cell means blank. The downloadable workbook contains the original cell values.

Expected G2
25
Open this example in the worksheet
Exclude an escaped literal label

Join <> to the active wildcard criterion in C2. The two literal A?~ spellings contribute 1 and 3, so excluding them leaves 62 from the original total of 66. Ax~ remains included. Keep the label and amount ranges aligned.

=SUMIFS(B2:B12,A2:A12,"<>"&C2)
Source inputs: Example2
LabelAmountCriterion
"A?~"1"A~?~~"
"Ax~"2Empty cell
"a?~"3Empty cell
"A*"4Empty cell
"AB"5Empty cell
"~"6Empty cell
"~~"7Empty cell
"~*"8Empty cell
"*"9Empty cell
"?"10Empty cell
"A~~"11Empty cell

Quotes distinguish text inputs from numbers; Empty cell means blank. The downloadable workbook contains the original cell values.

Expected G2
62
Open this example in the worksheet
Sum between two dates and include the whole end day

E2 and E3 are numeric, date-only report parameters: November 2 through November 4, 2026, both included. Use two criteria on the same timestamp range: ">="&E2 and "<"&(E3+1). The next-day exclusive boundary includes midnight, noon and 23:59:59 on the end date. The eligible amounts are 40 + 15 + 8 - 6 + 11 + 0 = 68; the pre-start row, next-day midnight and missing date are excluded. Using "<="&E3 instead gives 63 because it misses the end-day afternoon and refund; using "<="&(E3+1) wrongly includes next-day midnight and gives 97. Numeric zero is valid, and a refund reduces the total. Column A is readable text only; B contains actual numeric timestamps. Convert and validate imported text dates before applying the formula. Keep E2 <= E3 and both parameters free of time fractions. If the upper parameter is already an exclusive timestamp, compare directly to it without adding a day; this formula does not convert time zones.

=SUMIFS(C2:C10,B2:B10,">="&E2,B2:B10,"<"&(E3+1))
Source inputs: Example3
Date/time label (text)Numeric timestampAmountReport parameterDate-only serial
"2026-11-01 23:59:59"46327.9999884259223"Start date"46328
"2026-11-02 00:00:00"4632840"Inclusive end date"46330
"2026-11-03 12:00:00"46329.515
"2026-11-04 00:00:00"463308
"2026-11-04 12:00:00"46330.5-6
"2026-11-04 23:59:59"46330.9999884259211
"2026-11-05 00:00:00"4633129
"2026-11-04 08:00:00"46330.3333333333360
"Missing date"Empty cell100

Quotes distinguish text inputs from numbers; Empty cell means blank. The downloadable workbook contains the original cell values.

Expected G2
68
Open this example in the worksheet

The supplied examples are checked in the browser engine. Native Excel and Google Sheets recalculation remain unverified.

Practice across worksheets

Build a linked lookup or conditional report, edit its source sheets and check the formula against other datasets.

Open cross-sheet formula practice →

Practice a complete task

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.