Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or
0
0
0
s2smodern

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


Find and highlight missing numbers from sequence:

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. 

doc-identify-missing-numbers 6

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


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.

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:

doc-identify-missing-numbers 5

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 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1200 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...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
People in conversation:
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Farooq · 4 years ago
    I really enjoyed by executing all three functions in my excel sheet. It was marvelous.
  • To post as a guest, your comment is unpublished.
    bobo · 4 years ago
    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!
    • To post as a guest, your comment is unpublished.
      Dlady · 2 years ago
      The instructions are clear about how to add the VB code... it is very easy.
  • To post as a guest, your comment is unpublished.
    Satya · 4 years ago
    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?
  • To post as a guest, your comment is unpublished.
    C N Murthy · 4 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Sreenivasulu Reddy · 4 years ago
    This script was not executed, compile error generator as "With WS.Sort"