跳到主要內容

如何在Excel中將單元格輸入限制為數值或列表?

有時您設計一個工作簿,並且想要控制人們可以在工作表中輸入的內容。 例如,您可以將單元格輸入限制為數值範圍或特定列表。 本文將向您展示在Excel中快速限制單元格值條目的方法。


將單元格輸入限制為整數或給定範圍內的數字

您可以通過以下步驟設置具有特定限制的數值條目:

1.選擇要設置數值條目的範圍,然後單擊 數據>數據驗證。 看截圖:

2.在打開的“數據驗證”對話框中,轉到“設置”選項卡,然後:

(1)選擇 完整的號碼 來自的項目 下拉框。 請參閱下面的第一個屏幕截圖:
  
(2)從 數據 根據您的需要下拉框。 請參閱上面的第二個屏幕截圖:
(3)輸入限制的具體編號 最大值/最低限度/總長: 根據您的需要包裝。

3。 點擊 OK 按鈕。

此方法只能為在單元格中輸入的數值設置限制。 並且以下方法將指導您設置文本輸入的限制。


將單元格輸入限制為任何數值(整數/十進制數)或防止出現某些字符

如果您已安裝Kutools for Excel,則可以應用它 防止打字 功能可根據需要將單元格輸入限制為數值,字母或其他特殊字符,並且還支持防止在Excel中鍵入數字,字母或特定字符。

Excel的Kutools - 包含 300 多個 Excel 基本工具。 享受全功能 30 天免費試用,無需信用卡! 現在下載!

將單元格的輸入限制為整數或十進制數:

禁止在指定範圍內輸入字母:

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!


將單元格條目限制為文本值條目列表

您可以通過以下步驟設置文本輸入的限制:

1.預設其他用戶可以在單元格中輸入的所有文本,即預設以下位置的名稱列表 A2:A10 如以下屏幕截圖所示:

2.選擇要為單元格中的文本輸入設置限制的範圍,然後單擊 數據>數據驗證.


將單元格條目限制為文本值條目列表

您可以通過以下步驟設置文本輸入的限制:

1.預設其他用戶可以在單元格中輸入的所有文本,即預設以下位置的名稱列表 A2:A10 如以下屏幕截圖所示:

2.選擇要為單元格中的文本輸入設置限制的範圍,然後單擊 數據>數據驗證.

3.在“數據驗證”對話框中,轉到 設置 標籤,以及:
(1)選擇 名單 來自的項目 下拉列表;
(2)檢查 單元內下拉 選項;
(3)指定預設來源。 在這種情況下,它是 A2:A10.

4。 點擊 OK 按鈕。

然後在文本輸入限制的範圍內選擇一個單元格,它會在活動單元格旁邊添加一個箭頭。 單擊箭頭,它會顯示一個帶有預設名稱列表的下拉列表。 您可以選擇一個名稱來輕鬆填充活動單元格。 請參見下面的屏幕截圖:


你也可以設置 輸入信息。 用於數字或文本單元格條目限制,並設置 錯誤警報 也有限制。


箭頭藍色右氣泡 一鍵限制在一列/列表中輸入重複項

有時,您可能需要在列或列表中輸入唯一值。 您只需單擊一下Kutools for Excel即可完成 防止重複 效用。

Excel的Kutools - 包含 300 多個 Excel 基本工具。 享受全功能 30 天免費試用,無需信用卡! 現在下載!

選擇您將限制輸入重複項的列或列表,然後單擊 庫工具 > 防止重複。 從現在開始,當指定的列或列表中出現重複的條目時,它將立即警告您:

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!


演示:僅允許或禁止在Excel中鍵入指定的字符


Excel的Kutools:超過 300 個方便的工具觸手可及! 立即開始 30 天免費試用,沒有任何功能限制。 現在就下載!

僅在Excel中輕鬆將單元格輸入限制為整數/十進制數



Excel的Kutools - 使用 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選項卡為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