Skip to main content

How to identify missing numbers sequence in Excel?

Let's say you have a long list of sequence numbers to mark items, such as check numbers in bank statements, normally we scrolling through and locate the missing sequence numbers manually. Sometimes this is quite arduous and time-consuming. You may think of tricky ways to deal with it. Yes, there are several easy ways to identify and locate missing numbers sequence in Excel 2007, Excel 2010, and Excel 2013 quickly and conveniently.

Identify missing numbers sequence with IF formula

Identify missing numbers sequence with an array formula

Identify missing numbers sequence with Kutools for Excel quickly


arrow blue right bubble Identify missing numbers sequence with IF formula

As we all known, most of sequence numbers are with fixed increment of 1, such as 1, 2, 3, …, N. Therefore, if you can identify the number is not less 1 than its following number, there is a missing number.

We will show you the tutorials with an example as following screenshot shows:

doc identify missing numbers 1

1. In a blank cell, enter the formula of =IF(A3-A2=1,"","Missing"), and press the Enter key. In this case, we enter the formula in Cell B2.

doc-identify-missing-numbers2

If there is no missing numbers, this formula will return nothing; if missing numbers exist, it will return the text of "Missing" in active cell.

2. Select the cell B2 and drag the fill handle over the range of cells that you want to contain this formula. Now it identifies the missing numbers with the text of "Missing" in corresponding cells of Column B. See the following screenshot:

doc-identify-missing-numbers3


arrow blue right bubble Identify missing numbers sequence with an array formula

Sometimes it requires not only identifying missing numbers sequence, but also listing missing numbers too. You can deal it with following steps:

1. in the adjacent cell, please enter the formula = SMALL(IF(ISNA(MATCH(ROW(A$1:A$30),A$1:A$30,0)),ROW(A$1:A$30)),ROW(A1))

A1:A30 = range of numbers, the sequence to check against is from 1 to 30

2. Press the Ctrl + Shift + Enter Keys together to finish the formula. Copy down the formula until you get #NUM! errors meaning all missing numbers have been listed. See screenshot:

doc-identify-missing-numbers4


arrow blue right bubble Identify missing numbers sequence with Kutools for Excel quickly

The above methods only can identify the missing pure number sequence, if you have the sequence such as AA-1001-BB, AA-1002-BB, they may not work successfully. But, don't worry, Kutools for Excel’s powerful feature – Find Missing Sequence Number can help you quickly identify the missing sequence.

Note:To apply this Find Missing Sequence Number, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.

After installing Kutools for Excel, please do as this:

1. Select the data sequence that you want to find the missing sequence.

2. Click Kutools > Insert > Find Missing Sequence Number, see screenshot:

3. In the Find Missing Sequence Number dialog box:

(1.) If you choose Inserting new column with following missing marker option, all the missing sequence numbers have been marked with the text Missing in a new column next to your data. See screenshot:

doc-identify-missing-numbers 6

(2.) If you choose Inserting missing sequence number option, all the missing numbers have been inserted into the sequence list. See screenshot:

doc-identify-missing-numbers 7

(3.) If you choose Inserting blank rows when encounting missing sequence numbers option, all blank rows are inserted when there are missing numbers . See screenshot:

doc-identify-missing-numbers 8

(4.) If you choose Fill background color option, the location of the missing numbers will be highlighted at once. See screenshot:

doc-identify-missing-numbers 9


arrow blue right bubble Identify missing numbers sequence with Kutools for Excel quickly

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

Best Office Productivity Tools

Supercharge Your Spreadsheets: Experience Efficiency Like Never Before with Kutools for Excel

Popular Features: Find/Highlight/Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns     Move Columns   |   Unhide Columns   |   Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolset12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   Many More...

Kutools for Excel boasts over 300 features, ensuring that what you need is just a click away...

Supports Office/Excel 2007-2021 & newer, including 365   |   Available in 44 languages   |   Enjoy a full-featured 30-day free trial.

kte tab 201905


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

Comments (42)
No ratings yet. Be the first to rate!
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))
This comment was minimized by the moderator on the site
[google]send formul[/google]
This comment was minimized by the moderator on the site
Thats a beautiful post however the VBA macro code has a serious error, when you give it start and end number, it misses many randomly and thus the missing number list is incorrect. For example : in 1 to 100, I found 67 is not generated hence the missing number list never list 67 even if its not there. Any idea how to fix it ?
This comment was minimized by the moderator on the site
Hi, After using the missing formula I am able to find how many values are missing from my data. However when I try to find what exact values (numbers) are missing its giving me an error. I have more than 7700 rows of data missing. Now these values missing are from multiple cheque book and each cheque book has 50 leafs. These 7700 are the missing leafs and missing numbers are in no order. By no order I mean 1st cheque or 2nd or 5th 35th 48th number anything could be missing. Plus I cannot even define a range as in case above. What should I do, please advice.
This comment was minimized by the moderator on the site
Hi Sir, This example above is nothing short of a miracle similar to what a pace maker is to a heart patient. Cant express my thanks in words but you are a god saver
This comment was minimized by the moderator on the site
Is there a way to include a blank row for each missing number without losing the format/data
This comment was minimized by the moderator on the site
The =small(if(isna>>>>> formula causes excel to lock up. Any ideas folks?
This comment was minimized by the moderator on the site
The =small(if(isna>>>>>>>>> formula causes my excel programe to lock up and cease to function. Any Ideas folks.
This comment was minimized by the moderator on the site
"You can find out the missing number in array by following algorithm: /* getMissingNumber takes array and size of array as arguments*/ int getMissingNumber (int arr[], int num) { int i; /* For xor of all the elemets in arary */ int x1 = a[0]; /* For xor of all the elemets from 1 to n+1 */ int x2 = 1; for (i = 1; i< n; i++) x1 = x1^a[i]; for ( i = 2; i
This comment was minimized by the moderator on the site
will any of these work for phone numbers if I'm looking for phone numbers that are missing in a sequence?
This comment was minimized by the moderator on the site
Dear sir I want to find out d missing numbers from S-1 to S-27000 and J-1 to J-6500. Please send me the vba code for d same. The code available on net , when executed gives compilation error with WS.Sort Thaniking you, Jawale Jyo
This comment was minimized by the moderator on the site
This script was not executed, compile error generator as "With WS.Sort"[/quote]
This comment was minimized by the moderator on the site
Dear sir I want to find out d missing numbers from S-1 to S-27000 and J-1 to J-6500. Please send me the vba code for d same Thaniking you, Jawale Jyo
This comment was minimized by the moderator on the site
Dear, I want to find out missing numbers from S-1 to S-27000 and J-1 to J-7000 , U-1 to U-27000, C-1 to C-1848
This comment was minimized by the moderator on the site
Dear Sir, I want to find out missing numbers starting from S-1 to S-30,000 and J-1 to J-7000, U-1 to U-26932 and C-1 to C-1836 please send code, Thanking You. :-)
This comment was minimized by the moderator on the site
I want to find missing numbers starting from B00001 to B11223 which starts with alphabets, kindly send code for this.
This comment was minimized by the moderator on the site
Awesome. It worked. Grateful
This comment was minimized by the moderator on the site
It worked for me, many thanx!!! :-)
This comment was minimized by the moderator on the site
Thank you, it was a very useful tool as i had to search 1 missing number in 1-7000. thanking you once again
This comment was minimized by the moderator on the site
Hi sir, It is working and very useful this formula thank you
This comment was minimized by the moderator on the site
I tried the VBA code, and it doesn't work for dates. By that I mean if the range of data I'm using to determine for missing values is in the format: dd/mm/yyyy as opposed to a single integer. Is there an alteration to the VBA code that allows for the same process to be carried out? I used the =IF function and that works fine, but I'd be keen to get it working with the macros as well.
This comment was minimized by the moderator on the site
I really enjoyed by executing all three functions in my excel sheet. It was marvelous.
This comment was minimized by the moderator on the site
Great VBA code! Thank you very much for it. As I have no idea about how to create a VBA code, could you please let me know if there is any chance to adapt this code to my needs as follows: 1. the selected range to be by default (e.g. $C$2:$C$5000); 2. the new worksheet to have only the column with the missing numbers (and without "missing values" header); 3. to be able to add exceptions (e.g. numbers 4550432, 4552357, etc) that will not displayed in the new worksheet; 4. if some missing numbers are subsequently added in the original worksheet, these numbers to be automatically erased from the new worksheet, without running again the macro; 5. when I run again the macro, to create the same worksheet, with a particularly name. Thank you so much in advance!
This comment was minimized by the moderator on the site
The instructions are clear about how to add the VB code... it is very easy.
This comment was minimized by the moderator on the site
Dear Sir, It is working fine sir, I put this formula in excel VB module , later I saved as *.xla. now pl help me, how to use it?
This comment was minimized by the moderator on the site
1. VB script is not working as the same returned error as "With WS.Sort" as reported earlier by Mr.Reddy. 2. The formula =SMALL is working for series starting from 1 and NOT for series starting from say 201 to 535. Then this formula is returning all missing nos. starting from 1 whereas ideally we want the missing nos. within the range from 201 to 535.
This comment was minimized by the moderator on the site
This script was not executed, compile error generator as "With WS.Sort"
This comment was minimized by the moderator on the site
my report is like this.... iam uploading an excel file called abc into another excel called xyz.... That excel file abc rows directly writes into my Database...upto here i'm ok.... i need solution like this below.... no of rows read from abc excel while uploading into xyz excel... no of rows inserted into database from abc excel... if any rows while inserting into databse missing i need a message like "some rows were not inserted" i need those missing rows into separate sheet my code is in VBA,macros only...
This comment was minimized by the moderator on the site
Hi all.... Here you are finding missing numbers and pasting into other sheet... But i need to findout missing rows insted of missing numbers...and i need it to paste that missing rows into a new sheet... is there any solution for me..... Thnaks
This comment was minimized by the moderator on the site
hi i need to find missimg number in total no of book. i have 20000 book in my library . i have tally 18000 no of book .iam find the miss no's of books. sir pleace help me.
This comment was minimized by the moderator on the site
Press Alt+F11 button to open VB Screen, Press Insert then Module and paste above mentioned code and Press F5, it'll show you all the Missing nos in adjacent coloum, if your Acc.No. Start with letter like B, replace it with 0, & then do above operation.
This comment was minimized by the moderator on the site
Sir
Please send me VBA code for finding missing numbers among 65000 in a column in a less than three minutes
This comment was minimized by the moderator on the site
Sir
Can u send me the vba code to find missing numbers in 65000 numbers in a column. It should take three minutes time
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations