1

I want to process survey results with LibreOffice Calc (for example with data coming from LimeSurvey).

Since some questions were optional, some cells are empty (like A6):

LibreOffice screenshot columns

I want to answer questions like:

  • How many people have given the answer 2?
  • How many people did not respond?

So, I've created a pivot table with InsertPivot:

enter image description here

but... I was not able to answer the question "How many people did not respond?" (see B6).

LibreOffice pivot table screenshot empty

Actual bug:

  • the cell B6 counting empty cells is empty

Expected result:

  • the cell B6 counting empty cells should be 1 (sum of empty cells = 1)

To fix this problem I have a workaround consisting in creating a "temporary table" and replacing empty cells with something weird like § EMPTY VALUE § to then be able to analyze empty values with my pivot table.

How do you handle empty cells in LibreOffice Calc with a pivot table?

I can reproduce this problem on LibreOffice 6.4.7 on Debian GNU/Linux, on Ubuntu 20.04 Focal Fossa and on other operating systems.

Thank you so much!

    3 Answers 3

    1

    Another workaround:

    in column B, transform column A to string (the formula for cell B2 is =""&A2)

    Then create the pivot table using the values in column B.

      0

      It seems LibreOffice has a known bug since 2012, involving pivot tables with empty cells.

      https://bugs.documentfoundation.org/show_bug.cgi?id=47523

      AFAIK, the described workaround, involving a temporary table, is the only known solution.

      Note: since 2022 it seems there is an available patch under review that you can check:

      Update 2023: the patch was abandoned and the bug is still there.

        0

        As of 4/21/2025, Pivot Tables will summarize empty cells. But, the filter function fails to identify a cell using = Empty and = Not Empty (it does not let you use <> Empty). To simply get rid of empty rows, the "Ignore empty rows" works.

        New contributor
        Ron is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
        1

        Start asking to get answers

        Find the answer to your question by asking.

        Ask question

        Explore related questions

        See similar questions with these tags.