The logic itself is quite simple, but perhaps not intuitive.

Rather than check thatalldates are greater than the previous date, we check ifanyprevious date isgreaterthan the next date.

If we find even one, the dates are not in order.

Excel formula: All values in a range are at least

If we find none (zero), they are.

This is anarray operationwhere both ranges contain five dates.

But it also requires that relevant cells in column A be empty.

Excel formula: Validate input with check mark

IF then returns a check mark since all dates are in order.

any date moved by SORT).

If we find zero dates that are different, the check mark is returned.

Excel formula: If cell begins with x, y, or z

Check mark character ()

Inserting a check mark character in Excel can be tricky.

The UNICHAR function was introduced in Excel 2013.

Conditional Formatting

you might also useconditional formattingto highlight invalid dates.

Excel formula: All cells in range are blank

More than one condition can be tested by nesting IF functions.

The IF…

SUMPRODUCT Function

The Excel SUMPRODUCT function multipliesrangesorarraystogether and returns the sum of products.

Values can be sorted by one or more columns.

Excel formula: Data validation must not exist in list

SORT returns a dynamic array of results.

Excel IF function

Excel SUMPRODUCT function

Excel SORT function