+ Reply to Thread
Results 1 to 6 of 6

List missing number in a sequence to another row - horizontaly.

  1. #1
    Registered User
    Join Date
    01-27-2020
    Location
    Philippines
    MS-Off Ver
    365, 2021
    Posts
    26

    List missing number in a sequence to another row - horizontaly.

    Good day! I need to extract missing numbers in sequence from Column A to AX to Column AY to CV, or just simply identify or count any missing number. Here's the sample, please see attached file.) Thankss.
    Attached Files Attached Files

  2. #2
    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
    43,984

    Re: List missing number in a sequence to another row - horizontaly.

    One way:

    =IFERROR(AGGREGATE(15,6,(COLUMN($A$2:$AV$2)+1001-1/(ISNA(MATCH(COLUMN($A$2:$AV$2)+1001-1,$A$2:$AV$2,0)))),COLUMNS($AY2:AY2)),"")

    Change the bit in RED to reflect the FIRST number in your sequence.
    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

  3. #3
    Registered User
    Join Date
    01-27-2020
    Location
    Philippines
    MS-Off Ver
    365, 2021
    Posts
    26

    Re: List missing number in a sequence to another row - horizontaly.

    When I tried to move the to another column, the missing numbers changes, is there something I can adjust in the formula?
    Attached Files Attached Files

  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
    43,984

    Re: List missing number in a sequence to another row - horizontaly.

    This is now a totally different Q. In your ONE ROW sample, the values were in ascending order left to right with no duplicates. Now it transpires that they can be in any order and can have duplicates.

    However, after a bad tempered moment... it turns out not to be that difficult. I set up a Named Range (CTRL-F3 to view/edit... called Rng:

    =IF(COLUMN(Sheet1!$K$1:$ZZ$1)-COLUMN(Sheet1!$K12)+MIN(Sheet1!$K5:$BH5)>MAX(Sheet1!$K5:$BH5),"",COLUMN(Sheet1!$K$1:$ZZ$1)-COLUMN(Sheet1!$K5)+MIN(Sheet1!$K5:$BH5))

    I then used the formula:

    =IFERROR(AGGREGATE(15,6,Rng/(ISNA(MATCH(Rng,$K5:$BH5,0))),COLUMNS($V5:V5)),"")

    However, NEXT TIME make sure your sample meets our size guidelines (yellow banner, top) and is REALISTIC
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 12-21-2021 at 04:49 AM.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: List missing number in a sequence to another row - horizontaly.

    Try this. IN BI5 then copied to full region.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: List missing number in a sequence to another row - horizontaly.

    Please try at BI5

    =IFERROR(AGGREGATE(15,6,ROW($A$1:INDEX($A:$A,MAX($K5:$BH5)-MIN($K5:$BH5)))/ISNA(MATCH(MIN($K5:$BH5)+ROW($A$1:INDEX($A:$A,MAX($K5:$BH5)-MIN($K5:$BH5))),$K5:$BH5,)),COLUMNS($BI5:BI5))+MIN($K5:$BH5),"")
    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. [SOLVED] Finding Missing Number from Sequence
    By Bwhit86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-29-2019, 02:07 PM
  2. Missing Number in Sequence
    By sonbarse in forum Excel General
    Replies: 5
    Last Post: 11-19-2019, 02:33 AM
  3. [SOLVED] If number is missing in a sequence, highlight and show number
    By pkool in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-11-2017, 01:22 AM
  4. [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
  5. Indicate missing number in a sequence (Part II)
    By mmock in forum Excel General
    Replies: 3
    Last Post: 02-22-2006, 03:20 PM
  6. indicate a missing number in a sequence
    By mmock in forum Excel General
    Replies: 13
    Last Post: 02-21-2006, 11:30 PM
  7. list missing values in a sequence
    By matt in forum Excel General
    Replies: 3
    Last Post: 09-12-2005, 02:05 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