First we enter two dates in two cells respectively, as follows:
Note: Cell The date written in must be in EXCEL format and cannot be a text date.
Then we can use the IF() function to achieve comparison. The specific formula is: =IF(A1>B1,"true","false"). If the A1 date is greater than B1, It displays true, otherwise it displays false.
Recommended tutorial: excel tutorial
The above is the detailed content of How to compare the size of two dates in excel. For more information, please follow other related articles on the PHP Chinese website!