+ Reply to Thread
Results 1 to 5 of 5

Looking for missing values .. array night mares

  1. #1
    Registered User
    Join Date
    03-16-2015
    Location
    Cheltenham Australia
    MS-Off Ver
    365 Premium
    Posts
    1

    Looking for missing values .. array night mares

    Hi all,

    I have a list of 100,000 numeric identifiers.. 1,2,,4,5, ....100,000 etc.. and I am looking to return the missing numbers. E.g. 3
    however any array formula takes forever and breaks the system

    Using this formula, but as I say, when I expand this for the long list to read.. it crashes...



    =SMALL(IF(ISERROR(MATCH($C$1+ROW(OFFSET($A$1, 0, 0, $C$2-$C$1+1))-1, $A$2:$A$6, 0)), $C$1+ROW(OFFSET($A$1, 0, 0, $C$2-$C$1+1))-1), ROW(A1))

    Any, non array options or ways not to crash and continuously re calcualte is appreciated

    Cheers

    John

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Looking for missing values .. array night mares

    Why not just sort and then look at adjacent rows?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    124

    Re: Looking for missing values .. array night mares

    Try this array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Confirmed with CTRL+SHIFT+ENTER
    Copy down

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Looking for missing values .. array night mares

    The best way is to follow shg's suggestion. In which case, (assuming data start in A1), use a simple formula like:

    =IF(A1+1=A2,"","Gap")

    in B2, copied down to identify gaps

    Alternatively, if that's a non-starter: this array formula ran through 5000 rows in about 3 seconds:

    =IFERROR(SMALL(IF(ISNA(MATCH(ROW(A$1:A$5000),A$1:A$5000,0)),ROW(A$1:A$5000)),ROW(A1)),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Looking for missing values .. array night mares

    For that large of a range a VBA procedure will be much faster.

    I'm not a programmer but I have a VBA macro I found on the net that will do this. Interested?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 8
    Last Post: 03-04-2016, 10:23 AM
  2. Averaging an array with missing data
    By gapch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2012, 05:00 PM
  3. Replies: 4
    Last Post: 09-21-2012, 12:58 AM
  4. Replies: 2
    Last Post: 07-27-2012, 04:54 AM
  5. finding night hours (0-day,1-night) between ranges of data
    By sensation in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2012, 09:08 AM
  6. missing number in an array taken into account
    By WillNeeth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2009, 08:47 AM
  7. Vlookup Missing Table Array
    By artizan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2007, 03:26 PM

Tags for this Thread

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