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.
Kutools for Excel’s Find Missing Sequence Number feature can helper you quickly and easily find the missing sequence, and insert the missing numbers or blank rows into the existing data sequence, or fill background color when encountering the missing sequence.
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:
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.
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:
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:
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.
|Kutools for Excel : with more than 120 handy Excel add-ins, free to try with no limitation in 60 days.|
After installing Kutools for Excel, please do as follows:
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:
(2.) If you choose Inserting missing sequence number option, all the missing numbers have been inserted into the sequence list. See screenshot:
(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:
(4.) If you choose Fill background color option, the location of the missing numbers will be highlighted at once. See screenshot:
Recommended Productivity Tools
Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.
Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!
200 New Features for Excel, Make Excel Much Easy and Powerful:
- Merge Cell/Rows/Columns without Losing Data.
- Combine and Consolidate Multiple Sheets and Workbooks.
- Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
- Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
- More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 4 years agoI really enjoyed by executing all three functions in my excel sheet. It was marvelous.
To post as a guest, your comment is unpublished.· 4 years agoGreat 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!
To post as a guest, your comment is unpublished.· 4 years agoDear 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?
To post as a guest, your comment is unpublished.· 4 years ago1. 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.
To post as a guest, your comment is unpublished.· 4 years agoThis script was not executed, compile error generator as "With WS.Sort"