日期比较在 Excel 公式中不起作用 [英] Date comparison not working in Excel formula

查看:43
本文介绍了日期比较在 Excel 公式中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将日期 31/12/2013 放在 A1 中,将另一个日期 1/1/2014 放在 A2 中,则公式如下

If I put the date 31/12/2013 in A1 and another date 1/1/2014 in A2 then a formula like

 =A1<A2 

给出预期结果,TRUE.

gives the expected result, TRUE.

如果我把公式

=A1<1/1/2014 

在另一个单元格中,它给出的结果为 FALSE.

in another cell, it gives the result FALSE.

问题是如何调整第二个公式以使其给出正确的结果,以及为什么它不能正常工作.

The question is how to adjust the second formula to make it give the correct result, and why it doesn't work as it stands.

我已经研究了一段时间并找到了一些相关的帖子,例如

I've been looking at this for a while and have found some related posts like

比较计算日期和输入日期

但不是直接回答问题的人.

but not one which directly answers the question.

推荐答案

1/1/2014 is 1 divided by 1 divided by2014.

1/1/2014 is 1 divided by 1 divided by 2014.

相反;=A1

这篇关于日期比较在 Excel 公式中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆