← Back to all guides
Technology · 4 min READ

How to Fix a Pivot Table That Shows Count Instead of Sum in LibreOffice Calc

How to Fix a Pivot Table That Shows Count Instead of Sum in LibreOffice Calc guide illustration

Change the pivot calculation to Sum, test imported amounts with ISNUMBER, and recover text amounts without turning missing charges into zeros.

Quick note

Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.

Quick answer

Right-click inside the pivot table, choose Properties, and double-click the amount in Data Fields. Select Sum, then confirm both dialogs. If the heading now says Sum but the total is still low, test the original amounts. An imported number can look like currency while remaining text.

Check what the pivot actually counts

Start with one customer, department, or route whose source rows you can inspect. A count of invoice numbers might be intentional if the report also shows how many invoices each customer received. Change the calculation for the amount field only. If Amount is missing, drag it from the available fields into Data Fields.

Double-click the field button inside Data Fields. Double-clicking a label in Row Fields opens different settings for row subtotals. If the source amounts are already numeric, switching the amount calculation to Sum may finish the repair.

Test a surprisingly small total

Imagine that the North route has the following five source rows. Its three known charges should total 1,285.50. If the pivot shows 35, start with the imported amount in B3.

CellAmount in the sourceWhat it means
B235Numeric charge
B31,250.50 stored as textCharge from another billing system
B40Confirmed waived charge
B5(blank)Amount missing
B6pendingAmount unresolved

In a spare column enter =ISNUMBER(B2) and fill down. The genuine zero returns TRUE. The text amount, the note, and the empty cell return FALSE. Inspect each FALSE result before deciding what it represents. Changing the display to Currency does not turn a text string into a number.

Convert only the amounts you can identify

Keep the original Amount column. Add a new column headed Amount numeric. For a verified numeric row, reference its source cell, for example =B2. For the US-style text in B3 use =NUMBERVALUE(B3;".";","). The second argument is the decimal mark and the third is the thousands separator. For text written as 1.250,50, reverse the two quoted arguments. If Calc uses commas between function arguments on your system, adapt the separators between the arguments while leaving the quoted characters intact.

For a literal currency symbol, confirm the currency and remove the symbol on a working copy of those amounts. Preserve negative signs. Leave unresolved amounts blank in the helper column and retain their original notes. Directly referencing an empty cell can produce a zero. Keep order numbers and account IDs outside the conversion, especially if they contain leading zeros that must survive a CSV import.

Refresh and reconcile one group

In pivot Properties, expand Source and Destination and extend the source range to include the helper column. If the new field is missing, confirm the changed range and reopen Properties. Replace the old amount in Data Fields with Amount numeric and select Sum. Confirm, right-click the pivot and choose Refresh. North should now total 1,285.50, with two unresolved amounts still visible in the source. If later charges are absent, check which rows the pivot includes.

Calc pivot field settings · NUMBERVALUE arguments and examples

SHARE THIS GUIDE

Know someone who could use this?

DISCUSSION

Comments

Read or join the discussion.