• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Completion of a series of numbers that are missing

bines53

Active Member
Hello,

I have a column of numbers from 1 to 10 I need to find the missing numbers in the same column.
For example ,Following numbers listed in column :1,2,3,7,8,10
I need a formula that will give the missing numbers : 4,5,6,9

Thank you !
 
@bines53 ,

Suppose your list of numbers (1 to 10) are in D11 to D17, enter the below formula in E11

=IFERROR(SMALL(IF(ISNA(MATCH(ROW(INDIRECT("1:"&MAX($D$11:$D$17))),$D$11:$D$17,0)),ROW(INDIRECT("1:"&MAX($D$11:$D$17)))),ROWS($D$10:D10)),"")

Press Ctrl+Shift+Enter as this is an array formula

Regards!!
 
i just did this with vba. I'm not sure which is a bigger pita: the array megaformula or a sub to do it
 
Hi @bines53 ,

Suppose your list of numbers (1 to 10) are in D11 to D17, enter the formula in E11 with Ctrl + shift + Enter
 
Yes, Debraj I had checked the formulas with the numbers 1-10 in sequence

@bines53,

Here is the file with both the formulas

Regards!!
 

Attachments

  • Missing Numbers in a Series.xlsx
    8.5 KB · Views: 11
Hi AIM..
No, i am not criticizing anything .. just wanted to let you know...MAX($D$11:$D$17) if Max is 8 in the series... it will miss 9 and 10.. and will check missing number between 1 and Max number in the series..

Please take this in a positive way..:)
 
Back
Top