+ Reply to Thread
Results 1 to 9 of 9

Assitance please!! Find the missing sequence

  1. #1
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Assitance please!! Find the missing sequence

    Hello All,

    Appreciate you helping - Please see attached excel sheet - I am looking to find the missing sequnce in column A, So in column B I need to know if the numbering skipped in column a and the cell in Column B to say missing or skipped or should some how indetify where it skipped.


    Please Help

    Missing Index Check1.xlsx

  2. #2
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Re: Assitance please!! Find the missing sequence

    Missing Numbers.png

    Posting an image as well just in case!

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: Assitance please!! Find the missing sequence

    how would someone know what is missing? Is the sequence supposed to be 1.1.1.1 then 1.1.1.2 then 1.1.1.3 or 1.1.1.1.1 etc?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Re: Assitance please!! Find the missing sequence

    Thanks, Sambo - It varies starts from 1 then 1.1 then 1.1.1 then sometimes can skip to 1.2. I know this is a difficult one but any help would be appreciated.

    Kind Regards

    Andrew Nze

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: Assitance please!! Find the missing sequence

    I looked at your sheet and I don't see any way to tell what is supposed to be there vs. what is missing because you have as many as 16 different periods (8.2.1.6.3.10.4.4.4.1.1.1.9.1.1.1.1)
    and determining a sequence is beyond my ability. Maybe if you provide more detail about where or what generates the numbers.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,849

    Re: Assitance please!! Find the missing sequence

    I will agree with Sambo kid, there needs to be more careful description of what is expected. Perhaps as a start, here are a few missing sequences that I see:

    1.1.1.2 to 1.1.1.9 are all missing
    1.1.2.1 to 1.1.2.9 are all missing (same for 1.1.3 to 1.1.5)
    1.1.6(.0) to 1.1.6.9 are missing (same for 1.1.7 to 1.1.9)
    and so on.

    Farther down the list, I see up to 17 number sequence, so is 1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1 also a missing sequence?

    At this point, all I can see is a "generate all possible permutations of up to 17 numbers (from 1 to ??), and then identify which ones are not present. But that seems overboard, when the list is less than 20000 entries long -- there will be a lot of missing permutations. Though I would not be surprised if that is ultimately the algorithm that one would use here:

    1) Generate/Identify all possible permutations (with very careful consideration of the rules for generating and identifying a possible permutation -- this might be the hardest part of this kind of algorithm).
    2) Test if each possible permutation is present in the list.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    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,127

    Re: Assitance please!! Find the missing sequence

    Not a solution.... but maybe someone else can build on it.

    I cut your data down to 100 rows, for ease. I then parsed the numbers by their "." separator. Mabe VBA or some formula can spot the non-continuous values. they do stand out better than in your original, but I wouldn't want to do 17,000 rows manually....
    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

  8. #8
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Re: Assitance please!! Find the missing sequence

    Thanks Sambo, Glen , Mr Shorty

    Glenn your file is exactly what I am trying to achieve as the is no logic to the algorithms, Its just that where there is a sequnce of numbes - I just need to know if it skips a number. A loop might be needed here I think.

    Thanks Guys for looking into this

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,300

    Re: Assitance please!! Find the missing sequence

    A VBA "solution": make no claim on its robustness but works for sample provided,

    See sheet2 of attached

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. how to find missing sequence
    By yousif in forum Excel General
    Replies: 1
    Last Post: 03-14-2007, 03:40 AM
  2. find missing numbers in a sequence
    By kaytoo in forum Excel General
    Replies: 1
    Last Post: 06-13-2006, 12:15 PM
  3. How do I find a missing number in a sequence of numbers?
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 PM
  4. [SOLVED] How do I find a missing number in a sequence of numbers?
    By Nash in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] How do I find a missing number in a sequence of numbers?
    By Nash in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. How do I find a missing number in a sequence of numbers?
    By Nash in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. How do I find a missing number in a sequence of numbers?
    By Nash in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11: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