跳到主要内容

如何在Excel中将单元格输入限制为数值或列表?

有时您设计一个工作簿,并且想要控制人们可以在工作表中输入的内容。 例如,您可以将单元格输入限制为数值范围或特定列表。 本文将向您展示在Excel中快速限制单元格值条目的方法。


将单元格输入限制为整数或给定范围内的数字

您可以通过以下步骤设置具有特定限制的数值条目:

1.选择要设置数值条目的范围,然后单击 数据>数据验证。 看截图:

2.在打开的“数据验证”对话框中,转到“设置”选项卡,然后:

(1)选择 完整的号码 来自的项目 下拉框。 请参阅下面的第一个屏幕截图:
  
(2)从 时间 根据您的需要下拉框。 请参阅上面的第二个屏幕截图:
(3)输入限制的具体编号 最大/最低限度/长度 根据您的需要包装。

3。 点击 OK 按钮。

此方法只能为在单元格中输入的数值设置限制。 并且以下方法将指导您设置文本输入的限制。


将单元格输入限制为任何数值(整数/十进制数)或防止出现某些字符

如果您安装了 Kutools for Excel,您可以应用它 防止打字 功能可根据需要将单元格输入限制为数值,字母或其他特殊字符,并且还支持防止在Excel中键入数字,字母或特定字符。

Kutools for Excel - 包含 300 多个 Excel 基本工具。 享受全功能 30 天免费试用,无需信用卡! 现在下载!

将单元格的输入限制为整数或十进制数:

禁止在指定范围内输入字母:

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


将单元格条目限制为文本值条目列表

您可以通过以下步骤设置文本输入的限制:

1.预设其他用户可以在单元格中输入的所有文本,即预设以下位置的名称列表 A2:A10 如以下屏幕截图所示:

2.选择要为单元格中的文本输入设置限制的范围,然后单击 数据>数据验证.


将单元格条目限制为文本值条目列表

您可以通过以下步骤设置文本输入的限制:

1.预设其他用户可以在单元格中输入的所有文本,即预设以下位置的名称列表 A2:A10 如以下屏幕截图所示:

2.选择要为单元格中的文本输入设置限制的范围,然后单击 数据>数据验证.

3.在“数据验证”对话框中,转到 设置 标签,以及:
(1)选择 清单 来自的项目 下拉列表;
(2)检查 单元内下拉 选项;
(3)指定预设来源。 在这种情况下,它是 A2:A10.

4。 点击 OK 按钮。

然后在文本输入限制的范围内选择一个单元格,它会在活动单元格旁边添加一个箭头。 单击箭头,它会显示一个带有预设名称列表的下拉列表。 您可以选择一个名称来轻松填充活动单元格。 参见下面的截图:


你也可以设置 输入信息。 用于数字或文本单元格条目限制,并设置 错误警报 也有限制。


箭头蓝色右气泡 一键限制在一列/列表中输入重复项

有时,您可能需要在列或列表中输入唯一值。您只需通过 Kutools for Excel 一键即可完成 防止重复 效用。

Kutools for Excel - 包含 300 多个 Excel 基本工具。 享受全功能 30 天免费试用,无需信用卡! 现在下载!

选择您将限制输入重复项的列或列表,然后单击 库工具 > 防止重复。 从现在开始,当指定的列或列表中出现重复的条目时,它将立即警告您:

Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!


演示:仅允许或禁止在Excel中键入指定的字符


Kutools for Excel:超过 300 个方便的工具触手可及! 立即开始 30 天免费试用,没有任何功能限制。 立即下载!

仅在Excel中轻松将单元格输入限制为整数/十进制数



Kutools for Excel - 使用 300 多种基本工具增强 Excel 功能。 享受全功能 30 天免费试用,无需信用卡! 立即行动吧!

相关文章:

如何在Excel中限制单元格中的字符长度?

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
what if i want the cell show me the max digit that i enter \because if i do restrict ,it will show me icon that i dont want
This comment was minimized by the moderator on the site
I have a case where I want to customize the column with data limit and alpha numeric only i am trying many ways but not able to find solution
This comment was minimized by the moderator on the site
Hi, did you try the second method listed in the article? To limit a column with only alpha numeric input, you can first select the column, then go to Kutools tab, find Prevent Typing. In the drop-down list, select Prevent Typing. Then select the third option: Allow to type in these chars: copy the value below: abcdefghijklmnopqrstuvwxyz.0123456789. Now only alpha numeric characters are allowed to enter in the column.
This comment was minimized by the moderator on the site
I'm trying to do something simple...limit the maximum value in a range of cells. I follow your instructions using data validation...but it does not work...it does not limit the maximum value I put in the window.
This comment was minimized by the moderator on the site
Hi, to limit the maximum value in a range of cells, please follow the first method listed in the artcile. In the Data Validation dialog box, under Allow, you can select Whole number or Decimal according to your needs; Under Data, you should selection less than or equal to. And then set Maximum value.
This comment was minimized by the moderator on the site
HI, I want to insert data in excel as below. How? 1 2 1 2 1 2 1 2
This comment was minimized by the moderator on the site
how it could be possible that i assigned a limit "250" , and a cell show only 200 in this cell and above value than 200 show in other cell
This comment was minimized by the moderator on the site
how do I limit the value of a cell depending on another cell? For example users can select either Kg or Lbs for units of weight, and the limit depends on the units selected.
This comment was minimized by the moderator on the site
sir my work book i fill value 5000 automatic convert 50 4000 40 . i want not convert 5000 = 5000 and 4000 = 4000 ?
This comment was minimized by the moderator on the site
Thanks so much, really appreciate the help. :lol:
This comment was minimized by the moderator on the site
THANK YOU SO MUCH YOU DID MY WORK GO EASY.................... :lol:
This comment was minimized by the moderator on the site
The content is detailed with full explanations.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations