跳到主要內容

如何在Excel中識別丟失的數字序列?

假設您有很長的序列號列表來標記項目,例如銀行對帳單中的支票號,通常我們會滾動瀏覽並手動找到丟失的序列號。 有時這是很艱鉅且耗時的。 您可能會想到棘手的方法來處理它。 是的,在Excel 2007,Excel 2010和Excel 2013中,有幾種簡便的方法可以識別和定位丟失的數字序列。

使用IF公式識別缺失的數字序列

使用數組公式識別缺失的數字序列

使用Kutools for Excel快速識別丟失的數字序列


箭頭藍色右氣泡 使用IF公式識別缺失的數字序列

眾所周知,大多數序列號的固定增量都是1,例如1、2、3,...,N。因此,如果您可以識別出該序列號不小於其後續序列號的1,則說明缺少序列號。

我們將通過一個示例向您展示這些教程,如以下屏幕快照所示:

doc找出遺漏的號碼1

1.在空白單元格中,輸入公式 = IF(A3-A2 = 1,“”,“缺少”),然後按 Enter 鍵。 在這種情況下,我們在單元格B2中輸入公式。

Doc-Indect-Mission-Numbers2

如果沒有缺失的數字,則此公式將不返回任何內容。 如果存在缺少的數字,它將在活動單元格中返回“缺少”的文本。

2.選擇單元格B2,然後將填充手柄拖到要包含此公式的單元格範圍內。 現在,它在B列的相應單元格中使用“ Missing”文本標識丟失的數字。請參見以下屏幕截圖:

Doc-Indect-Mission-Numbers3


箭頭藍色右氣泡 使用數組公式識別缺失的數字序列

有時,它不僅需要識別丟失的數字序列,還需要列出丟失的數字。 您可以按照以下步驟進行處理:

1.在相鄰的單元格中,請輸入公式 = SMALL(IF(ISNA(MATCH(ROW(A$1:A$30),A$1:A$30,0)),ROW(A$1:A$30)),ROW(A1))

A1:A30 =數字範圍,要檢查的順序是1到30

2。 按 Ctrl + Shift + Enter 鍵一起完成公式。 複製公式,直到獲得#NUM! 錯誤,表示已列出所有缺失的數字。 看截圖:

Doc-Indect-Mission-Numbers4


箭頭藍色右氣泡 使用Kutools for Excel快速識別丟失的數字序列

上述方法只能識別丟失的純數字序列,如果您使用的序列為AA-1001-BB,AA-1002-BB,則它們可能無法成功工作。 但是不用擔心 Excel的Kutools的強大功能– 查找丟失的序列號 可以幫助您快速識別缺失的序列。

注意:要應用此 查找丟失的序列號,首先,您應該下載 Excel的Kutools,然後快速輕鬆地應用該功能。

安裝後 Excel的Kutools,請這樣做:

1.選擇要查找缺失序列的數據序列。

2。 點擊 庫工具 > 插入 > 查找丟失的序列號,請參見屏幕截圖:

3。 在裡面 查找丟失的序列號 對話框:

(1.)如果選擇 插入帶有以下缺失標記的新列 選項,所有缺失的序列號都已標記為文本 失踪 在數據旁邊的新列中。 看截圖:

Doc-Indects缺少的號碼6

(2.)如果選擇 插入缺失的序列號 選項,所有缺失的數字都已插入到序列表中。 看截圖:

Doc-Indects缺少的號碼7

(3.)如果選擇 遇到缺失的序列號時插入空白行 選項,當缺少數字時,將插入所有空白行。 看截圖:

Doc-Indects缺少的號碼8

(4.)如果選擇 填充背景色 選項,缺失數字的位置將立即突出顯示。 看截圖:

Doc-Indects缺少的號碼9


箭頭藍色右氣泡 使用Kutools for Excel快速識別丟失的數字序列

Excel的Kutools:具有300多個方便的Excel加載項,可以在30天內免費試用,沒有任何限制。 立即下載並免費試用!

最佳辦公生產力工具

🤖 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 (43)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I am not able to find missing numbers from excel..
This comment was minimized by the moderator on the site
I want to find a missing receipts using a range in columns, i.e. B2:C2 (receipt book # 679201/B2:679400/C2) meaning 200 receipt pages in one receipt book. Then accounted receipts of 679305/D2:679386/E2. Then what is the best formula for this?
This comment was minimized by the moderator on the site
Thank you. This is awesome
This comment was minimized by the moderator on the site
Doesn't work
This comment was minimized by the moderator on the site
i wanted to identify the missing range in sequence rather than a missing number. example if there is range missing from 1,2,3,8,9,10,11,18. the missing range is 4-7 & 12-17.
This comment was minimized by the moderator on the site
Thankyou... It helped a lot... God bless you
This comment was minimized by the moderator on the site
I have a list and this has been extremely helpful. I am trying to list the existing numbers in a sequence and then skip the missing (ext. 1, 2, 3, 5, 7 to show as 1 - 3, 5, 7). Is this possible to formulate?
This comment was minimized by the moderator on the site
Hello Community and excel Gurus; I wan to search missing numbers in a row of excel ,I tried to use the Kutool for excel ,After selecting the option to find missing numbers ,i am getting error the range can only contain number or text ?Though the range or row i had selected contains only number. Any expert advice ? Best, Sanchit Bhrdwaj
This comment was minimized by the moderator on the site
May be your numbers are in text format so first you have to convert it numeber by multiply all with Number 1 , the format will change in number then your range will be in number and it will change
This comment was minimized by the moderator on the site
Thank u Mannnnnn . Cheers
This comment was minimized by the moderator on the site
its good working but this formula very big how can remember this = SMALL(IF(ISNA(MATCH(ROW(A$1:A$30),A$1:A$30,0)),ROW(A$1:A$30)),ROW(A1))
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations