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

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

问题描述

如果我把A1中的日期31/12/2013和A2中的另一个日期1/1/2014,那么一个公式如

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 是1 分开加1 分开

相反, = A1< DATEVALUE(1/1/2014)

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

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