bulldo.gs · Spreadsheet lab

Does COUNT count a cell containing TRUE?

A teacher counts numeric scores. One student’s row contains a TRUE flag. Will that row enter the count when the class workbook moves to another spreadsheet app?

We opened the same OpenDocument spreadsheet in two applications. LibreOffice Calc counted the referenced logical value. Gnumeric skipped it. If that count forms the denominator of a report, the choice changes the reported figure.

Download the 11-case workbook (.ods)

Observed after recalculation on December 1, 2026
ApplicationTRUE cell
C9
Mixed range
C11
Profile
D26
LibreOffice Calc 24.2.7.2141 · numeric logical
Gnumeric 1.12.56030 · distinct logical

The input range B3:B10 holds a blank, zero, numeric-looking text, a negative number, a decimal, an empty string, TRUE and an error. OpenFormula 1.3 permits either logical representation. Each application passed the eleven workbook checks with its observed profile.

Try the control in your application

  1. Open a fresh copy of the ODS in your spreadsheet application. Choose its recalculate command. On the Cases tab record C9 and C11 before editing.
  2. D26 selects the expected profile. The workbook ships with 1. If your application returned 0 for C9, enter 0 in D26. Recalculate. Compare E3:E12 and E17. Switching the expected profile leaves the actual counts in column C intact. Record any remaining failures.
  3. Clear the numeric zero in B4. Recalculate. C4 should fall from 1 to 0 and C11 should fall by one. E4 and E11 should now read FAIL. Put numeric 0 back and check that both recover.
  4. To check the array result, inspect B17:B18. The values should be 13 above 29. Set the expected bottom value in D18 to 0. E17 should fail. Restore 29.

Try the same blank-versus-zero control on a supplier delivery. In the Grist receiving worksheet, clearing the count on an eight-unit line means nobody has counted it yet. Entering zero records that all eight units are missing.

Separate the importer from the calculation

In a new blank spreadsheet, enter =TRUE() in B1 and the number 3 in B2. Enter =COUNT(B1) in C1 and =COUNT(B1:B2) in D1. Gnumeric returned 0 and 1 in this direct-entry test. Keep the import result and the direct-entry result separate when comparing another app.

Download the reproduction bundle (.zip) for the original ODS, expected cases, workbook generator, typed results, import warnings, file hashes and Gnumeric runner. The checks cover this workbook in the two recorded Linux builds. Excel and Google Sheets await an independent run of this file.

Share a result using only the sample

Use the supplied fictional workbook. Report the application version, locale, how you opened the ODS, D26, the original C9 and C11, and what happened when you cleared and restored B4. A plain-text report is enough. Keep your own workbooks, organisation details and account IDs private.

Open an email draft to [email protected]. Your email app lets you review the draft before sending.