Reputation: 67
I wish to count the number of dates in a given column. The column has three possible values for a cell. A cell can be blank, have an "x", or have a date. I don't care what the actual date is, I just want to count the number of cells that have a date in them.
Upvotes: 1
Views: 158
Reputation: 56189
Using COUNT
, it counts only if the cell value is numeric. The dates are internally numeric.
=COUNT(A:A)
Upvotes: 2
Reputation: 152525
Use COUNTIFS()
=COUNTIFS(A:A,">=" & DATE(1900,1,1),A:A,"<=" & DATE(2045,12,31))
You can bracket the dates to what ever you want.
OR
You can do the negative.
If you are possitive the only three values possible are blank,x
, and a date then:
=COUNTIFS(A:A,"<>",A:A,"<>x")
Upvotes: 2