[Solved] Counting how many cells have text entered?

Discuss the spreadsheet application
Post Reply
derek_in_paisley
Posts: 11
Joined: Sun Jun 15, 2014 9:24 am

[Solved] Counting how many cells have text entered?

Post by derek_in_paisley »

Hi,

I'm hoping this isn't too basic a question but I'm stuck.

I'm using the spreadsheet to record an electronic "job ticket" to use in our printing factory but I cant see how to perform a particular calculation.

Each job would have a different number of colours of print, for instance red, blue and black. If the initial designer enters the print colours in three separate cells, how do I perform a calculation including the number of colours of print? Obviously if I can have the sheet calculate from the number of colours and the number of items to be printed, I can calculate a figure for work loading, but how do I get Calc to count the cells with the text entries e.g. red, blue and black would equal 3. A job with gold and magenta would equal 2.

Can that be done?

Thanks for reading!

Derek %-)
Last edited by derek_in_paisley on Sat Jun 21, 2014 11:11 am, edited 1 time in total.
Derek %-)
Office version 4.1.0 on windows XP
User avatar
Zizi64
Volunteer
Posts: 11511
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: counting how many cells have text entered?

Post by Zizi64 »

The function

Code: Select all

COUNTA(Cellrange)
will count all of non-empty cells (e.g.: It counts cells contains Text OR Numbers).

The function

Code: Select all

COUNT(Cellrange)
will count cells contains numerical values only.

Code: Select all


=COUNTA(Cellrange)-COUNT(Cellrange)
will count cells contains text only.
Last edited by Zizi64 on Sat Jun 21, 2014 4:33 pm, edited 1 time in total.
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
derek_in_paisley
Posts: 11
Joined: Sun Jun 15, 2014 9:24 am

Re: counting how many cells have text entered?

Post by derek_in_paisley »

Genius! COUNTA() is exactly what I needed.

Thanks for that!

Derek %-)
Derek %-)
Office version 4.1.0 on windows XP
Post Reply