+ Reply to Thread
Results 1 to 9 of 9

Need to make a list of numbers missing in a consecutively-numbered column

  1. #1
    Registered User
    Join Date
    05-25-2016
    Location
    Hollywood, CA
    MS-Off Ver
    2016
    Posts
    79

    Need to make a list of numbers missing in a consecutively-numbered column

    I need to find what numbers are missing in a column of consecutively-numbered barcodes, then end up with a list of those numbers (col. A on the Carts sheet attached). Is there any way to do this without VBA, like using VLookup and something else?
    Attached Files Attached Files

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Need to make a list of numbers missing in a consecutively-numbered column

    You can solve this with the SMALL-function. See attachment.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column K contains a number from 1 to x depending on the number of missing numbers.
    Trade-off when using a formula is that you need to copy the formula yourself.
    Also the formula doesn't stop when it has a result. It will always do all the lookups.
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Need to make a list of numbers missing in a consecutively-numbered column

    I tried it this way
    Attached Files Attached Files
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Need to make a list of numbers missing in a consecutively-numbered column

    Here's an alternative approach - Array-enter the formula below and fill down beyond what's necessary:

    =IFERROR(SMALL(IF(ISNA(MATCH(ROW(OFFSET(Carts!$A$1,Carts!$A$3-1,0,Carts!$A$783-Carts!$A$3,1)),VALUE(Carts!$A$3:$A$783),0)),ROW(OFFSET(Carts!$A$1,Carts!$A$3-1,0,Carts!$A$783-Carts!$A$3,1))),ROW(1:1)),"")

    This version avoids the helper column and should auto-adjust to whatever numbers you put in "carts", but the trade-off is that it's volatile, so it will calculate a bit more slowly. Take a look at the attachment to see if it'll do:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need to make a list of numbers missing in a consecutively-numbered column

    Hi trstew,

    See if this makes more sense to you. This is just another format to show what I think you want. You will need to have your data sorted from small to large in column A.

    Missing Carts.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Need to make a list of numbers missing in a consecutively-numbered column

    Another way. Try array entering this formula in J3 and fill down to about row 230 or until you get blanks.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 10-05-2017 at 08:52 PM.
    Dave

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Need to make a list of numbers missing in a consecutively-numbered column

    WOW, it's great to see all the suggestions and contributions.

    Especially the OP, haven't see if he/she even likes it

  8. #8
    Registered User
    Join Date
    05-25-2016
    Location
    Hollywood, CA
    MS-Off Ver
    2016
    Posts
    79

    Re: Need to make a list of numbers missing in a consecutively-numbered column

    Quote Originally Posted by Keebellah View Post
    WOW, it's great to see all the suggestions and contributions.

    Especially the OP, haven't see if he/she even likes it
    Still haven't had time to look at all these in-depth... Great to have so many replies - Thanks!!

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Need to make a list of numbers missing in a consecutively-numbered column

    Just 'holler' if you need help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 04-15-2017, 04:10 PM
  2. Replies: 4
    Last Post: 10-19-2012, 12:09 PM
  3. Replies: 4
    Last Post: 07-29-2012, 08:40 AM
  4. Replies: 1
    Last Post: 07-19-2010, 12:03 PM
  5. multi-page consecutively numbered sheet
    By Joeblow in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2008, 11:11 AM
  6. [SOLVED] how can i create a consecutively numbered form in excel
    By Dan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-03-2006, 11:40 PM
  7. [SOLVED] how do I print forms, consecutively numbered?
    By Paula in forum Excel General
    Replies: 0
    Last Post: 07-27-2005, 05:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1