ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Counting mixed formats in a column (https://www.excelbanter.com/excel-discussion-misc-queries/243738-counting-mixed-formats-column.html)

RC

Counting mixed formats in a column
 
I have one column of date. In it is data of the type -
12345
15689
12458A
C55897
and some blank cells.

I want to count the number of cells that are not blank whatever they contain
(i.e. whether they are pure numbers or text/numbers or numbers/text.
Can you provide a formula for this.

Thanks

RonaldoOneNil

Counting mixed formats in a column
 
If your data is in column A then use this in cell B1
=COUNTA(A:A)

"RC" wrote:

I have one column of date. In it is data of the type -
12345
15689
12458A
C55897
and some blank cells.

I want to count the number of cells that are not blank whatever they contain
(i.e. whether they are pure numbers or text/numbers or numbers/text.
Can you provide a formula for this.

Thanks


Dave Peterson

Counting mixed formats in a column
 
=count(a:a)
will count the number of cells that contain numbers (including dates and times!)

=counta(a:a)
will count the cells that contain anything--including formulas that evaluate to
="" (that look blank).

=countblank(a:a)
will count the number of cells that are empty or look blank (evaluate to ="").

Debra Dalgleish has lots of notes about counting stuff he
http://contextures.com/xlFunctions04.html



RC wrote:

I have one column of date. In it is data of the type -
12345
15689
12458A
C55897
and some blank cells.

I want to count the number of cells that are not blank whatever they contain
(i.e. whether they are pure numbers or text/numbers or numbers/text.
Can you provide a formula for this.

Thanks


--

Dave Peterson


All times are GMT +1. The time now is 01:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com