+ Reply to Thread
Results 1 to 5 of 5

Finding Missing Number from Sequence

  1. #1
    Registered User
    Join Date
    12-29-2019
    Location
    Sydney, Australia
    MS-Off Ver
    10
    Posts
    4

    Finding Missing Number from Sequence

    Hi Everyone,


    I'm having some trouble understanding some code I found online that I'm trying to use. The code looks like this =SMALL(IF(COUNTIF($A$1:$A$7,ROW($1:$12))=0,ROW($1:$12),""),ROW(A1)) and is meant to find the missing numbers from a sequence of numbers. The problem i'm having is that I'd like to start the list of numbers from row 5 instead of row 1 and I can't make it work. The formula i'm struggling with is in column K on the attached spreadsheet.


    Thanks for your help.
    Attached Files Attached Files
    Last edited by Bwhit86; 12-29-2019 at 02:05 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,096

    Re: Finding Missing Number from Sequence

    This is NOT code - it's a formula.

    Explain in WORDS what you are trying to achieve. Tell us where the numbers are being drawn from and, crucially, show us what you want. Mock this up manually. Seeing a non-functioning formula that returns incorrect results without any clue about the desired outcome is pretty useless.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

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

    Re: Finding Missing Number from Sequence

    You can uise this array formula in K1, copied down:

    =IFERROR(SMALL(IF(COUNTIF($F$5:$F$48,ROW($5:$48))=0,ROW($5:$48),""),ROWS($1:1)),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    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

  4. #4
    Registered User
    Join Date
    12-29-2019
    Location
    Sydney, Australia
    MS-Off Ver
    10
    Posts
    4
    Hi Glenn, that fixed my problem. Thank you for your helpful response, wish you all the best for the new year!
    Last edited by AliGW; 12-29-2019 at 02:08 PM. Reason: Please don't quote unnecessarily!

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

    Re: Finding Missing Number from Sequence

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Missing Number in Sequence
    By sonbarse in forum Excel General
    Replies: 5
    Last Post: 11-19-2019, 02:33 AM
  2. [SOLVED] Finding missing number in sequence
    By Ahmed Al-Boghdady in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-26-2016, 04:11 PM
  3. Finding Missing Numbers In A Sequence
    By Kitty20 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-28-2015, 04:43 PM
  4. [SOLVED] Filtering, sorting and finding missing sequence using macro (for big Excel file)
    By TallOne in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 05-31-2014, 11:24 AM
  5. Finding missing dates with time in sequence
    By yuvrajcbe in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-03-2014, 08:29 AM
  6. [SOLVED] indicate a missing number in a sequence
    By mmock in forum Excel General
    Replies: 13
    Last Post: 02-21-2006, 11:30 PM
  7. Finding numbers missing from a sequence
    By andy in forum Excel General
    Replies: 4
    Last Post: 04-08-2005, 12:06 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