excel 设置日期格式后,限制单元格内容只能输入日期和时间的方法
时间:2022-11-15 18:17:28
excel限制单元格内容,比如只能输入日期和时间,如何进行excel设置日期格式呢?
我们以A列为列进行限制单元格内容只能输入日期和时间。
第一步,选择A列,设置为日期或时间格式。
第二步,单击“数据”—“有效性”,在“设置”选项卡中,“允许”选“自定义”,公式输入:= A 1*(LEFT(CELL("format",A1))="D"),“确定”,如下图所示:
上面的公式,CELL("format",A1)是单元格 A1的格式代码。因为日期和时间的本质就是数字序列,如果输入汉字或者字母就会提示出错,从而起到excel设置日期格式后,限制单元格内容输入只能为日期和时间。
excel 设置日期格式后,限制单元格内容只能输入日期和时间的方法的下载地址:
标签:excel设置日期格式
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word文档第一页(首页)页眉(页脚)如何删除?
2022-02-16 21:32:58
![](https://img.aspxhome.com/file/2023/7/28907_0s.jpg)
在Word中,如何在书签中插入交叉引用
2023-12-04 10:49:16
![](https://img.aspxhome.com/file/2023/6/19146_0s.png)
word表格制作详细图解教程
2022-07-06 05:47:32
![](https://img.aspxhome.com/file/2023/7/33837_0s.png)
如何隐藏Word2013文档中的回车符
2023-12-12 11:47:23
![](https://img.aspxhome.com/file/2023/2/20992_0s.jpg)
3、打开自定义区域选项对话框
2022-12-29 21:25:35
excel使用日期公式的方法
2022-05-17 11:10:42
Win10鼠标右键没反应怎么解决
2023-06-08 19:39:57
![](https://img.aspxhome.com/file/2023/8/46448_0s.jpg)
wps如何在每章节前设置分隔符
2023-12-04 02:04:15
![](https://img.aspxhome.com/file/2023/4/a163794_0s.jpg)
如何快速在Word里输入直径符号
2023-11-29 00:31:28
![](https://img.aspxhome.com/file/2023/6/18406_0s.jpg)
如何把Word中制作好的表格转换成Excel表格
2023-12-13 04:36:29
所有Word文档转图片归档 只需3步
2022-06-29 06:35:59
![](https://img.aspxhome.com/file/2023/9/22129_0s.jpg)
如何为word插入音频文件
2022-09-11 19:33:58
Excel利用切片器功能实现数据智能展现
2023-03-25 22:37:06
![](https://img.aspxhome.com/file/2023/4/a140924_0s.jpg)
word 字竖着怎么打
2023-03-20 19:25:18
![](https://img.aspxhome.com/file/2023/4/32464_0s.png)
Word中简繁转换的技巧
2022-07-21 15:12:33
excel表格怎么设置生成曲线图
2022-09-19 05:13:39
Excel文件加密与隐藏方法
2022-07-13 03:24:15
Win10系统安装完毕之后无法调整电脑屏幕分辨率要怎么解决?
2023-11-24 08:01:17
![](https://img.aspxhome.com/file/2023/8/50448_0s.png)
如何在excel2007表格设置边框
2023-07-18 04:52:49
![](https://img.aspxhome.com/file/2023/8/a140418_0s.jpg)
win10操作中心打不开怎么办?win10操作中心打不开的解决方法
2023-11-02 05:54:02
![](https://img.aspxhome.com/file/2023/8/47638_0s.jpg)