跳到主要内容

如何在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,“”,“缺少”),然后按 输入 键。 在这种情况下,我们在单元格B2中输入公式。

文档识别缺失数字 2

如果没有缺失的数字,则此公式将不返回任何内容。 如果存在缺少的数字,它将在活动单元格中返回“缺少”的文本。

2.选择单元格B2,然后将填充手柄拖到要包含此公式的单元格范围内。 现在,它在B列的相应单元格中使用“ Missing”文本标识丢失的数字。请参见以下屏幕截图:

文档识别缺失数字 3


箭头蓝色右气泡 使用数组公式识别缺失的数字序列

有时,它不仅需要识别丢失的数字序列,还需要列出丢失的数字。 您可以按照以下步骤进行处理:

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! 错误,表示已列出所有缺失的数字。 看截图:

文档识别缺失数字 4


箭头蓝色右气泡 使用 Kutools for Excel 快速识别缺失的数字序列

上述方法只能识别丢失的纯数字序列,如果您拥有诸如AA-1001-BB,AA-1002-BB之类的序列,它们可能无法成功工作。 但是不用担心 Kutools for Excel的强大功能– 查找丢失的序列号 可以帮助您快速识别缺失的序列。

请注意:申请这个 查找丢失的序列号,首先,您应该下载 Kutools for Excel,然后快速轻松地应用该功能。

安装后 Kutools for Excel,请这样做:

1.选择要查找缺失序列的数据序列。

2。 点击 库工具 > 插页 > 查找丢失的序列号,请参见屏幕截图:

3.在 查找丢失的序列号 对话框:

(1.)如果选择 插入带有以下缺失标记的新列 选项,所有缺失的序列号都已标记为文本 失踪 在数据旁边的新列中。 看截图:

文档识别缺失数字 6

(2.)如果选择 插入缺失的序列号 选项,所有缺失的数字都已插入到序列表中。 看截图:

文档识别缺失数字 7

(3.)如果选择 遇到缺失的序列号时插入空白行 选项,当缺少数字时,将插入所有空白行。 看截图:

文档识别缺失数字 8

(4.)如果选择 填充背景色 选项,缺失数字的位置将立即突出显示。 看截图:

文档识别缺失数字 9


箭头蓝色右气泡 使用 Kutools for Excel 快速识别缺失的数字序列

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!

最佳办公生产力工具

🤖 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 (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