Isdate Function and Better Alternative in Google Sheets

Published on

How to test whether a value in a cell is a date? Use the built-in Isdate function in Google Sheets.

Even though you can use the Isdate in a range of cells, it won’t return an array result. So we must also know about the alternative to Isdate function in Google Sheets.

The Isdate is just an Info type function. So it returns TRUE or FALSE.

Must Check: Learn all the date functions in Google Spreadsheets.

How to Use Isdate Function in Google Sheets

The below four formulas explain the use of the Isdate function in Google Sheets.

Example # 1:

=ISDATE("31/12/2018")

Result: TRUE

If you Sheets’ default date format is MM/DD/YYY, then you should try this formula as below.

=ISDATE("12/31/2018")

Mine is DD/MM/YY.

Example 2:

=ISDATE("December 2018")

Also you can use a cell reference in the Isdate.

=ISDATE(A1)

If the cell content is a date, then this formula would return TRUE else FALSE.

How to use Isdate Function in a Range of Cells in Google Sheets

Does the Isdate function return an Array Result?

Nope!

You can not use Google Sheets Isdate function to return an array result in each row in a column. But it checks all the values in a range (array) as a whole.

isdate in an array

The above Isdate formula in Google Sheets returns FALSE since the value in cell A3 is blank.

How to Check Values in a Column for Dates and Return an Array Result

As said, the Isdate() won’t return an array result. Here is one better alternative to the Isdate in Google Sheets.

Isdate Function Alternative to Return Array Result

The better alternative to the Isdate in Google Doc Sheets is the DATEVALUE function. But it’s a combination formula involving IF and IFERROR.

Example:

=IFERROR(IF(DATEVALUE(A1),TRUE),FALSE)

Or

=IFERROR(IF(DATEVALUE("31/12/2018"),TRUE),FALSE)

It does work in a range and it return an array result. See one example below.

Suppose I want to test the range A1: A8 for dates, and if the values are dates return TRUE in each row else FALSE.

Formula:

=ArrayFormula(iferror(IF(DATEVALUE(A1:A8),TRUE),FALSE))

Image:

is date expanding result

In this formula, you can replace the TRUE/FALSE Boolean values with any calculation that the formula to return.

Treat this tutorial as an alternative to your following queries too.

How to check the presence of dates in a column?

Isdate Array Formula equivalent?

Conclusion

Hope you have liked the above tutorial on the use of Isdate and the alternative combination formula in Google Sheets.

2019 is fast approaching. If you are looking for a 2019 calendar template in Google Sheets, here it’s.

Link: Free Google Sheets Calendar Template Download and How To.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Marking Case-Sensitive Unique Values in Excel

Marking case-sensitive unique values provides several benefits compared to merely extracting them in an...

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Compare Two Tables for Differences in Excel

To compare two tables with similar data for differences, you can use the XLOOKUP...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

More like this

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.