+ Reply to Thread
Results 1 to 17 of 17

Find Missing Numbers

  1. #1
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Find Missing Numbers

    Hi

    I seek some help with the attached spreadsheet with find missing numbers in a sequence.

    What it is that I want to achive is run a routine that looksa down a column of numbers and then dispay the missing number along side.

    What I have at the moments is that it finds and displays a number, but if the numbers missing are more that one it only displays that one not the others.

    Any ideas how I can do this.

    Please see attached


    Many thanks
    Attached Files Attached Files
    Last edited by kapeller; 11-19-2010 at 05:11 AM.
    Have a great day!!!!

    Lou

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Find Missing Numbers

    Write this formula in E10:

    =IF(COLUMNS($E$10:E$10)<$C11-$C10,$C10+COLUMNS($E$10:E$10),"")

    And pull it right and down as much as you need.

    Notice that for example:

    9154100
    9154251

    you need to go at least 151 column to the right...

    Maximum is 256

  3. #3
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Find Missing Numbers

    Hi zbor

    Many thanks for your response.

    I followed your instructions but column E only dispays one missing number.

    eg column
    C10 = 9154051 E10 = 9154052 also needs to display 9154053
    C11 = 9154054

    Is this possible?

    Many thanks

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Find Missing Numbers

    Did you pull formula to the right too?

    Also, maybe this approach you could use too:

    =IF($C11-$C10=2, C10+1, IF($C11-$C10>2, C10+1&" - "&$C11-1, ""))
    Last edited by zbor; 11-18-2010 at 03:19 AM.

  5. #5
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465

    Re: Find Missing Numbers

    Hi,

    I have one more way
    please check the attached file.
    Attached Files Attached Files
    __________________
    Regards
    Rahul Nagar
    Founder of www.myshortcutkeys.com.


    If you get the answer of your questions then please click EDIT in your original post then click on GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  6. #6
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Find Missing Numbers

    Hi zbor

    Many thanks for that response, it did the trick

  7. #7
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Find Missing Numbers

    Hi Rahul Nagar

    Many thanks for contribution. I like you concept works very vell. I did not consider Vlookup.

    I will be able to use your concept as well

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Find Missing Numbers

    Or this:

    =CHOOSE(MIN(3,$C11-$C10), "", C10+1, C10+1&" - "&$C11-1)

  9. #9
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Find Missing Numbers

    Hi Rahul Nagar

    I do have one question about your method. In column D how do your get the word Missing Notices if there are some missing.

    L cannot see how this is achieved?

  10. #10
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465

    Re: Find Missing Numbers

    Hi,

    I have replace #N/A with "Missing Notices" using Replace option shortcut key is Ctrl+H.

  11. #11
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Find Missing Numbers

    Hi Rahul Nagar

    Thanks for that information

  12. #12
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Find Missing Numbers

    Hi zbor

    I have another question, if I may.

    In your example =CHOOSE(MIN(3,$C11-$C10), "", C10+1, C10+1&" - "&$C11-1)

    It displays the number in this format 9154058 - 9154061.

    Is it possible to display all the missing number 9154058, 9154059, 9154060, 9154061

    I appericate your assistance.

    Many thanks

  13. #13
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Find Missing Numbers

    Check post number #2

  14. #14
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Find Missing Numbers

    Hi zbor

    Sorry for this, but I must be a bit thick.

    I followed your instructions in post #2

    I am confused what you mean by this
    you need to go at least 151 column to the right

  15. #15
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Find Missing Numbers

    Check row number 41
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Find Missing Numbers

    Hi zbor

    I cannot that you enough for the time you spent on this. What I can now see is the I miss understood the
    you need to go to the right
    Once again many thanks

    PS I will leave you in peace.

  17. #17
    Registered User
    Join Date
    03-23-2010
    Location
    Melbourne Australia Down Under
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: Find Missing Numbers

    Hi

    Further to my earlier post concerning missing numbers and to the great help provided by zbor.

    This the last post received and it works.

    Write this formula in E10:

    =IF(COLUMNS($E$10:E$10)<$C11-$C10,$C10+COLUMNS($E$10:E$10),"")

    And pull it right and down as much as you need.

    Notice that for example:

    9154100
    9154251

    you need to go at least 151 column to the right...

    Maximum is 256
    The above function writes the missing numbers in a new column.

    I have a further question.

    Is it possible to write the numbers into one cell so that I can then text wrap instead of
    you need to go at least 151 column to the right...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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