Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On LibreOffice Calc, I have seven columns filled with any one of the non-numerical values a, b or c. For each line, I want to count how many times the a value has been entered.

How can I do that? I couldn't find a way to do that with the Data Pilot.

share|improve this question
up vote 2 down vote accepted

Assuming the seven columns are A:G and the first row is 1:

In H1 enter =COUNTIF(A1:G1;"=a")

and copy down.

Credits to John V at www.oooforum.org.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.