Contact

SUMIF Function in ONLYOFFICE Spreadsheet Editor: Examples and Syntax

Mathematical Beginner ONLYOFFICE Spreadsheet Editor

SUMIF in ONLYOFFICE Spreadsheet Editor: sum sales for one product category using practical sample data, clear expected results, pitfalls and the official function documentation.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

SUMIF adds values whose corresponding records satisfy one criterion. In the shop example below, the Books entries have revenue 12,15,30, totaling 57. The criterion range and the amounts remain separate and aligned.

Availability and version history

  • Introduced: The original introduction version and date are not established by the checked sources.
  • Availability: Documented in the current ONLYOFFICE Spreadsheet Editor help; no final supported-version endpoint is established.
  • Scope: Docs and Desktop Editors release separately. The unversioned help does not establish identical support in older builds, mobile clients or every deployment.
  • Checked: October 14, 2026, against the official SUMIF reference and the cited implementation. Examples were independently calculated; these particular formulas have not been run in the native application.

Syntax, optional sum range and wildcards

SUMIF(range, criteria, [sum_range])

The official reference defines the first argument as the cells to test and the second as a criterion supplied directly or through a cell. The third argument supplies the amounts to add. If it is omitted, SUMIF adds qualifying numbers from the first range itself.

ONLYOFFICE explicitly documents ? for one character and * for any number of characters. The page does not give a complete case-sensitivity, literal-wildcard escape or malformed-criterion specification. The exercises therefore use matching capitalization and documented wildcard forms.

The pinned implementation adds numeric amount cells at corresponding positions. These examples deliberately use equally sized ranges; they do not establish every mismatched-range or imported-data behavior in a particular shipped build. Use your locale’s accepted argument separators.

Reproduce the original shop example

Create ShopSales, leaving space through column F and row twelve. Enter Category in A1 and Revenue in B1, then:

Row A: Category B: Revenue
2 Books 12
3 Games 20
4 Books 15
5 Office 18
6 Books 30

Put the following formulas in D:

Cell Formula Expected result
D2 =SUMIF(A2:A6,"Books",B2:B6) 57
D3 =SUMIF(A2:A6,"Games",B2:B6) 20
D4 =SUMIF(A2:A6,"Office",B2:B6) 18
D5 =SUM(D2:D4) 95
D6 =SUM(B2:B6) 95
D7 =D5-D6 0
D8 =SUMIF(B2:B6,">=20") 50

D8 uses the optional-third-argument rule: 20 and 30 qualify and are themselves summed. D5 reconciles because the three category labels partition this particular dataset without overlap or missing categories.

Put Books in F2 and =SUMIF(A2:A6,F2,B2:B6) in F3 for 57. Changing F2 to Games gives 20 without editing the formula. Restore Books if you want the original control again.

Advanced check: an OR total must remove the overlap

Suppose a summary should include revenue from Books or amounts of at least 20. Adding D2 and D8 gives 107, but the Books sale of 30 belongs to both groups.

In D10 enter =SUMIFS(B2:B6,A2:A6,"Books",B2:B6,">=20") for 30. This separately documented SUMIFS formula selects the intersection. In D11 enter =D2+D8-D10 for 77. The included amounts are 12,20,15,30; the Office amount of 18 is excluded.

The arithmetic is a union of two sets, not two independent totals that can always be added. If you add more overlapping conditions, a single subtraction may no longer be sufficient.

Wildcard controls on a separate sheet

Create BookPatterns. Enter these label/amount pairs in A2:B7: Books/12, Bookcase/20, Book/5, Bookmarks/8, Games/30, NoteBook/7. Keep the capital B in NoteBook as shown.

Cell Formula Expected result
D2 =SUMIF(A2:A7,"Book*",B2:B7) 45
D3 =SUMIF(A2:A7,"Book?",B2:B7) 12
D4 =SUMIF(A2:A7,"*Book*",B2:B7) 52

The first pattern includes Book itself because the asterisk can represent zero characters. The second requires exactly one character after Book, matching Books. The third also includes NoteBook. These patterns classify text, so a partial-word match can be a false positive for a business category.

Reconstruct the vendor’s optional-range demonstration

The final frame of the official animation uses =SUMIF(D2:D13,">600") and displays 8216. Reproduce the numeric setup on VendorInventory with columns A:G and thirteen rows:

Row A: Product B: Price C: Stock Expected D: Value
2 Apple 4 184 736
3 Orange 7 132 924
4 Banana 8 111 888
5 Pear 4 127 508
6 Grape 5 56 280
7 Watermelon 10 42 420
8 Peach 7 178 1246
9 Strawberry 9 98 882
10 Lemon 6 129 774
11 Melon 12 52 624
12 Grapefruit 11 84 924
13 Apricot 7 174 1218

Put =B2*C2 in D2 and fill through D13. In G2 enter =SUM(D2:D13) for 9424; in G3 enter the animation’s SUMIF formula for 8216. The excluded values 508,280,420 total 1208, which equals G2−G3. These calculations reconstruct the visual example without assuming that currency formatting alone establishes the original file’s stored types.

Check matching row boundaries before changing criteria. Keep revenue numeric; a text-producing import is a different input. This guide does not establish every no-match, error-cell, hidden-row or wildcard-escape behavior across clients.

COUNTIF counts qualifying records rather than adding their revenue. SUM provides an unconditional total; SUMIFS handles an intersection of criteria with a different argument order.