lyle

New Member
Joined
Mar 17, 2009
Messages
2
Hi All,

I am trying to count a column in excel, range of A2:A200 and need to count the number of cells that contain dates and not free text.

Can only think of COUNTIF, but having major problems with this.

Any help would be great.

Lyle
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Dates in Excel can be numbers. To count the Numbers (if all are dates) use
= Count(A2:A200); Write back if I misunderstood...
 
Upvote 0
The formula will depend on the format of the date. For example if from A2:A200 date is formatted as "dd/mm/yy" then the formula to use is

Code:
+COUNTIF(A2:A200,TEXT(A2:A200,"dd/mm/yy"))
 
Upvote 0
In a empty column, row 2 enter: =IF(CELL("format",A2)="D4",1,0) .. will produce either
1 for Dates or 0 for numbers -- Sum the Column
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,089
Members
448,548
Latest member
harryls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top