Home  >  Article  >  Topics  >  How to compare the size of two dates in excel

How to compare the size of two dates in excel

王林
王林Original
2020-06-09 11:29:2957094browse

How to compare the size of two dates in excel

First we enter two dates in two cells respectively, as follows:

How to compare the size of two dates in excel

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn