Adding the OR branches
A record may satisfy both criteria rows. The selected database record contributes once, not once per branch.
Step-by-step guide · read-only ·
Loading your interactive spreadsheet…
Preparing the worksheet and formulas…
Enter separate formulas in N5 and O5. Use the database A1:E13, field header H6 and complete criteria range H1:K3. N5 is the sum of numeric values in the selected field; O5 is their numeric count. Conditions across one criteria row combine with AND; the two rows combine with OR. Repeated Units headers apply both numeric bounds to the same record. Keep each selected record once even when it matches both rows. Keep numeric zeroes and signed amounts; referenced text, numeric-looking text, booleans and blanks do not contribute to either statistic.
All nonblank conditions on one row use AND; the two rows use OR. A blank row matches every record. These controls store literal text, so =East stays a criterion rather than becoming an executable formula.
| Criteria row | Region | Status | Units rule 1 | Units rule 2 |
|---|---|---|---|---|
| 2 | =East | =Posted | >=2 | <=5 |
| 3 | =West | =Released | >=0 | <=9 |
Applied field:
Follow the highlighted cells. Switch to Your turn to edit. Answer cells: N5, O5. Browser calculations may differ from your Excel version.
Practice stays on this device. No worksheet data is uploaded.
Read AND/OR criteria from cells and keep the numeric population visible.
Enter separate formulas in N5 and O5. Use the database A1:E13, field header H6 and complete criteria range H1:K3. N5 is the sum of numeric values in the selected field; O5 is their numeric count. Conditions across one criteria row combine with AND; the two rows combine with OR. Repeated Units headers apply both numeric bounds to the same record. Keep each selected record once even when it matches both rows. Keep numeric zeroes and signed amounts; referenced text, numeric-looking text, booleans and blanks do not contribute to either statistic.
=DSUM($A$1:$E$13,$H$6,$H$1:$K$3)=DCOUNT($A$1:$E$13,$H$6,$H$1:$K$3)Enter each formula in its labeled answer cell. These report formulas perform different jobs; do not fill the first formula down.
Region and Status criteria use text prefixes, wildcard patterns or explicit =exact text. Comparisons are case-insensitive; * matches multiple characters, ? matches one, and ~ escapes a wildcard or tilde. A leading apostrophe is an Excel entry aid for storing a criterion beginning with = as literal text; it is not part of the stored criterion.
A criteria rule selects records first. Numeric summary functions then ignore nonnumeric values in the selected field. A matching record containing text "18" or TRUE is different from a numeric observation, and a unique literal "#NUM!" is different from the actual multiple-match error.
Units inputs are whole numbers within ±10,000. Amount accepts numeric cents within ±1,000,000, literal text, Boolean values or blanks. Numeric comparisons in this course apply only to Units. Text ordering/not-equal criteria, calculated criteria columns, external databases and typed source errors require separate rules.
The first row supplies field names. The database range includes all twelve original records, not only the visible matches.
Across H:K, all nonblank conditions on a row must hold. Across rows 2 and 3, either complete rule can select a record. Matching both rows does not create a second observation.
The repeated Units headings apply a lower and an upper bound to one record. A completely blank criteria row matches all records.
H6 is the field header Amount or Units. Keep it as a worksheet reference so the same formulas work when the selected field changes.
Select numeric observations without coercing text or booleans. Each source record contributes at most once.
Select numeric observations without coercing text or booleans. Each source record contributes at most once.
A record may satisfy both criteria rows. The selected database record contributes once, not once per branch.
All columns on a row combine with AND. Different rows are alternatives.
DGET is an exactly-one-record operation. Returning a first match conceals ambiguity.
Original criteria records and independent selection/type/cardinality rules checked against the real browser formula engine. Native Excel and Sheets recalculation/edit/save remain separate verification steps.
Content version 1. Practice checks compare calculated results across different datasets; they do not certify every possible formula.