Fanwood

Board Regular
Joined
Jan 29, 2014
Messages
60
In column A I have a range of cells. Some contain dates and some contain just letters

In cell F I would like to show how many have a date.
In cell G I would like to show how many have the letter L

I tried using this for the date portion as an array formula:

{=SUM(IF(ISERROR(DATEVALUE(TEXT(A:A,"MM/dd/yyyy"))),0,1))}

{=COUNT(IF(ISERROR(DATEVALUE(TEXT(A:A,"MM/dd/yyyy"))),0,1))}

=COUNTIF(A:A,">1/1/1900")

But no luck.

Help is appreciated
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
These should both work:

=COUNTIF(A:A,">0")
=COUNTIF(A:A,"L")

Since Excel stores dates as a number, you can count the number of cells with a value greater than 0. However, if your dates are stored as text, this won't work.
 
Upvote 0
These should both work:

=COUNTIF(A:A,">0")
=COUNTIF(A:A,"L")

Since Excel stores dates as a number, you can count the number of cells with a value greater than 0. However, if your dates are stored as text, this won't work.

Amazing! Look at me over thinking it lol

Thank you
 
Upvote 0

Forum statistics

Threads
1,217,346
Messages
6,136,029
Members
449,979
Latest member
trinitybg10

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