Contact

DSUM in FreeOffice PlanMaker: Syntax and Worked Examples

Database Beginner SoftMaker FreeOffice PlanMaker 2024

Sum a headed database field using AND/OR criteria, with zero and negative records preserved in the selection.

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

Quick answer

=DSUM(A10:D16,"Value",D1:D2) is expected to return 12 for the database below. The East values are 2, 4 and 6, and their sum is 12.

DSUM applies conditions stored in a worksheet criteria area. This differs from putting criterion strings directly into a SUMIFS argument list: the database and criteria headings are part of the structure.

Syntax and required ranges

=DSUM(DatabaseArea, Column, SearchCriteriaArea)

All three arguments are required. DatabaseArea includes the heading row and records. Column can be a field label in quotes or a one-based relative field number. In A10:D16, "Value" and 3 select the same field. SearchCriteriaArea includes its own headings and the condition rows.

Keep criteria above the database as required by the official instructions. Do not overlap the ranges or omit the database heading row.

Build a headed database and criteria above it

Enter the following database in A10:D16, including its header row:

Row A: ID B: Region C: Value D: Status
10 ID Region Value Status
11 1 East 2 Open
12 2 East 4 Closed
13 3 East 6 Open
14 4 West 8 Open
15 5 West 0 Closed
16 6 South −2 Open

Create these small criteria blocks above the database, leaving the blocks separate:

Criteria range Header cells Condition cells Meaning
D1:D2 D1: Region D2: East East records
A1:B2 A1: Region; B1: Status A2: East; B2: Open East AND Open
F1:F2 F1: ID F2: numeric 2 Unique ID 2
H1:H3 H1: Region H2: East; H3: West East OR West
A5:A6 A5: Region A6: North No matching record
C5:C6 C5: Region C6: South One South record
E5:F6 E5: Value; F5: Value E6: >=0; F6: <=4 Value between 0 and 4 inclusive

Enter comparison criteria such as >=0 as cell content, not as a formula beginning with =. Header labels must correspond to the database fields. The repeated Value headings let two conditions apply to the same field in one criteria row.

The official database-function instructions require the criteria area to be above the database and not overlap it. Conditions on the same row combine with AND; separate criteria rows combine with OR. The database reference includes its headings; the criteria reference includes its own headings and the intended condition rows. Do not include an extra blank criteria row casually, because it changes the criteria structure.

Step-by-step: sum one region, then add a condition

  1. Enter =DSUM(A10:D16,"Value",D1:D2). Expected: 12 from 2+4+6.
  2. Compare =DSUM(A10:D16,3,D1:D2). Expected: 12.
  3. Enter =DSUM(A10:D16,"Value",A1:B2). Expected: 8 from the East/Open values 2+6.

The second condition removes the closed East record with value 4. The function does not multiply the criteria or add the values from the criteria cells; it uses them to select database records.

OR conditions and repeated field headings

=DSUM(A10:D16,"Value",H1:H3) uses two criteria rows, selecting East or West. Its expected sum is 20, calculated as 2+4+6+8+0.

=DSUM(A10:D16,"Value",E5:F6) uses two Value headings on the same row, selecting values at least 0 and at most 4. The included values are 2, 4 and 0, so the expected result is 6. Repeating the field heading is purposeful: it applies two comparisons to the same database field.

Check the shape of the criteria area when a sum appears too large. Moving a condition to another row changes AND to OR and can broaden the selected set substantially.

Practical use: adjustments and reconciliation

The South criterion selects a real negative value. =DSUM(A10:D16,"Value",C5:C6) is expected to return −2. If the field represents signed adjustments, subtracting values can be legitimate; the function does not ignore a record because its amount is negative.

A matched zero contributes nothing to the sum but still represents a record. Likewise, positive and negative values can cancel. A total of zero therefore does not, by itself, establish that no records matched. Keep a matching-record count or inspect the selected subset when the distinction matters.

The North criteria select no records. The function page does not specify that exact output; the native check below records numeric zero for this case rather than relying on another spreadsheet’s behavior.

Errors and maintenance

The examples use numeric Value cells with consistent headings. The reference does not provide a complete coercion table for text, blanks, Boolean values or embedded errors. Validate the field’s data type before trusting a total, and do not mask a malformed criteria area with a fallback zero.

A field label can remain understandable when columns are rearranged, while a relative index may point to a new field. Both approaches still require accurate headings and range boundaries. When extending the database, ensure that the reference includes the added records but not unrelated totals or notes.

Cross-product compatibility should be checked against the actual criteria logic and saved formula. These examples do not infer wildcard, case-matching or export behavior beyond the cited FreeOffice 2024 documentation and the stated native cases.

Native totals and missing-selection result

Seven DSUM formulas were calculated in FreeOffice PlanMaker 2024 revision F1238.1005. In screenshot row order they returned 12, 12, 8, 20, 6, −2 and 0. The first six totals matched independent addition of the selected numeric records. The last, no-match North selection returned numeric zero. All formulas and typed input cells were preserved after native PMDX save and reopen. This is a bounded observation of the stated dataset, not a complete rule for text, blanks or errors.

DSUM database results in FreeOffice PlanMaker 2024

Selected J10 shows the East total 12. J12 shows East/Open total 8, J13 the East-or-West total 20, J15 the negative South total and J16 the no-match zero. The criteria remain above the database, including the East/West OR block in H1:H3; results occupy J10:J16 outside both input areas.

Version and verification scope

The official FreeOffice PlanMaker 2024 reference was checked October 18, 2026. The installed application is FreeOffice PlanMaker 2024 revision F1238.1005. The original introduction version is not established by this evidence; the current reference does not identify the function as deprecated or retired. No availability claim for a different edition or a 2026 release is implied.

The native section reports the exact tested subset and results from revision F1238.1005 after native PMDX save and reopen. Independent arithmetic is distinguished from saved observations. No Excel-export test was performed. English formulas in this guide use commas; use the separators required by your formula settings.