Formula to check if all cells in a column are dates (and numbers)

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

Ok this is what i need. a formula to tell me if all cells in a range are a date so lets asy the range is D11:D1100

also if you show me how to change it to check for numbers decimal is fine, this would be perfect
thanks
Tony
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
@gaz_chops' suggestion is fine if all rows are to be assumed filled, if you need to ignore empty cells then try

=COUNT(D11:D1100)=COUNTA(D11:D1100)

Although this will not work if there are formula blanks in the range.
 
Upvote 0
@gaz_chops' suggestion is fine if all rows are to be assumed filled, if you need to ignore empty cells then try

=COUNT(D11:D1100)=COUNTA(D11:D1100)

Although this will not work if there are formula blanks in the range.
I took it that a blank cell would be counted as not a date.
 
Upvote 0
Possibly, Gaz. As with many questions, there is a lot open to interpretation. What I meant was that if the range was larger than needed to allow for future entries then comparing count to number of rows would not match up.

If that was the case then eliminating those empty cells might require one of several different methods, or I could just be thinking too far out of the box :unsure:
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,834
Members
449,192
Latest member
mcgeeaudrey

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