excel 判断时间大小常见错误和解决方法
时间:2022-04-07 10:28:50
为何excel判断时间大小得不到正确答案。
=IF(TEXT(A1,"h:m")<"16:00",1,0),这个公式的意思是如果A1单元格的时间小于16:00点,B1单元格就显示1,否则就显示0。显然B列的excel判断时间大小公式没有得到正确结果。
您知道公式在哪里出错了吗?text函数得到的是文本格式的数字,要得到正确结果,需要转成真正的数字再比较大小,因此再两个数值前面加上负负,公式变为:=IF(--TEXT(A1,"h:m")<--"16:00",1,0)。
大家一定要记住,文本的判断和数值判断不同。
标签:excel判断时间大小
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Excel中复制后单元格的边框变成闪动的虚线框,怎么去除?
2023-03-12 21:10:13
![](https://img.aspxhome.com/file/2023/2/a154312_0s.jpg)
word怎么更改默认的度量单位呢?
2022-04-18 07:08:10
![](https://img.aspxhome.com/file/2023/8/23048_0s.jpg)
Win10由于系统原因下载文件已被删除怎么办?
2023-12-12 19:20:45
![](https://img.aspxhome.com/file/2023/8/51338_0s.jpg)
word复制的文字格式怎么修改?
2022-02-07 17:44:02
![](https://img.aspxhome.com/file/2023/0/25380_0s.jpg)
word去掉多余的空行
2023-04-21 03:44:11
![](https://img.aspxhome.com/file/2023/3/34573_0s.gif)
如何插入空白的excel单元格
2023-11-05 00:16:57
![](https://img.aspxhome.com/file/2023/9/a155879_0s.png)
word文档如何插入目录?word插入目录方法介绍
2023-11-12 13:38:06
![](https://img.aspxhome.com/file/2023/6/23326_0s.jpg)
word2007怎样改变表格的背景颜色
2023-05-31 09:27:38
怎么激活2021最新office365?office365激活密钥+激活工具推荐
2023-05-29 19:55:52
![](https://img.aspxhome.com/file/2023/4/14944_0s.jpg)
Excel 中如何让文本公式计算出结果
2023-04-06 09:04:24
![](https://img.aspxhome.com/file/2023/2/a140092_0s.jpg)
Excel怎么筛选出小于100的数据? excel表格提取小于100的数据的技巧
2023-10-06 04:25:37
![](https://img.aspxhome.com/file/2023/6/39706_0s.png)
Word页码怎么从第二页开始设置为1?
2023-12-09 11:45:20
![](https://img.aspxhome.com/file/2023/2/32112_0s.png)
word2013如何简单插入脚注
2023-11-30 07:37:36
![](https://img.aspxhome.com/file/2023/4/18904_0s.jpg)
WPS2016文本如何随图形旋转
2023-11-30 15:38:29
EXCEL快手制作出入库系统,SUMIFS函数应用,库存预警实用干货
2022-05-04 03:26:03
![](https://img.aspxhome.com/file/2023/8/a157198_0s.jpg)
如何在Excel中输入电阻单位符号“Ω”
2022-07-04 03:23:49
![](https://img.aspxhome.com/file/2023/5/a156665_0s.jpg)
word2013怎么制作折叠标题
2023-11-09 22:38:08
![](https://img.aspxhome.com/file/2023/2/17212_0s.jpeg)
Excel count函数用法解释和实例应用
2023-06-25 03:51:46
excel2003常用的快捷键介绍
2022-01-19 12:15:48
如何快速复制整张Excel工作表
2022-09-09 19:16:08
![](https://img.aspxhome.com/file/2023/7/a154017_0s.jpg)