Excel怎样设置不能输入空格的列
时间:2023-01-10 20:05:19
实例操作如下:
①启动电脑上的Excel2010,打开表格数据,选中D1:D11单元格,单击数据有效性按钮。
②弹出数据有效性对话框,在允许中设置为自定义,公式填入:=iserror(find(" ",D1))
③确定之后,D1:D11区域设置生效,我们尝试输入一个带空格的,出现警告对话框。
④继续为E列设置数据有效性,方法与上述类似,公式填入:=count(E1)。
⑤回车,设置同样生效,只要带了空格,就会提示错误信息。
公式说明
先在D1单元格内找到空格,由于D1单元格里面没有空格,所以find函数返回的结果是#value,该值是个错误值,所以iserror返回true。接下来如果在D列出现空格,返回的结果就是false,就会限制。
标签:Excel怎样设置不能输入空格的列
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win7系统提示此程序被组策略阻止怎么解决?
2023-11-03 20:11:20
![](https://img.aspxhome.com/file/2023/27/a230297_0s.jpg)
Win8.1系统如何更改SkyDrive默认存储位置
2023-11-20 23:06:37
![](https://img.aspxhome.com/file/2023/29/a256196_0s.png)
Excel中怎么按月份填充日期
2022-08-03 07:08:06
![](https://img.aspxhome.com/file/2023/1/a153831_0s.png)
Windows11常见问题有哪些?
2022-08-21 03:38:02
![](https://img.aspxhome.com/file/2023/1/a280514_0s.jpg)
PPT制作简单的时间轴动画效果 实例教程
2022-02-09 00:13:41
![](https://img.aspxhome.com/file/2023/10/a352469_0s.jpg)
如何注册认证支付宝企业账户?
2023-06-25 16:24:42
Hyper-V实战之多个Win2008安装方法
2023-04-21 03:41:18
![](https://img.aspxhome.com/file/2023/29/a259348_0s.jpg)
win10常见问题有哪些?win10常见问题及解决方法汇总
2023-06-22 12:46:42
win10最新版本1909兼容性好吗_win101909版本兼容性点评分析
2022-03-07 22:42:00
![](https://img.aspxhome.com/file/2023/2/a288832_0s.jpg)
Win10预览版11099总是出现弹窗WSClient.dll出错丢失的解决办法
2022-10-04 19:45:53
![](https://img.aspxhome.com/file/2023/28/a245869_0s.png)
想让Win8速度更快吗 菜鸟必看10个提高Win8运行速度技巧
2022-06-01 11:11:11
![](https://img.aspxhome.com/file/2023/29/a256756_0s.jpg)
怎么把2003word转成2010的?
2023-11-30 22:27:45
![](https://img.aspxhome.com/file/2023/4/18984_0s.png)
wps文字2016怎么插入和修饰图片
2022-02-01 07:05:01
暴风影音怎么关闭资讯弹窗?
2023-08-08 13:23:24
![](https://img.aspxhome.com/file/2023/8/a339716_0s.jpg)
Win11连接宽带的具体步骤
2022-03-21 23:35:48
![](https://img.aspxhome.com/file/2023/1/a278975_0s.jpg)
Win10系统提示“我们只收集某些错误信息”的解决方法
2022-06-13 13:17:49
![](https://img.aspxhome.com/file/2023/1/a280208_0s.png)
Win10 21H1系统出现无限蓝屏badsystem怎么办?
2023-04-21 22:42:53
![](https://img.aspxhome.com/file/2023/26/a221707_0s.png)
如何进入bios,详细教您惠普笔记本如何进入bios
2023-07-28 16:09:35
![](https://img.aspxhome.com/file/2023/4/a305921_0s.png)
MAC使用图像捕捉查看和管理iPhone照片的方法
2022-06-19 03:54:58
![](https://img.aspxhome.com/file/2023/7/a216087_0s.jpg)
如何利用days函数计算两个日期之间间隔的天数
2022-04-13 15:51:30
![](https://img.aspxhome.com/file/2023/0/a161240_0s.jpg)