Home > Topics > excel > body text

How to compare the size of two dates in excel

王林
Release: 2020-06-09 11:29:29
Original
57375 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template