+ Reply to Thread
Results 1 to 9 of 9

Validating missing numbers (highlighting comparison column)

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Corona, CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Red face Validating missing numbers (highlighting comparison column)

    I have a range of numbers in column A which started with number 2 through 65535. This range is missing numbers. (For instance, numbers 1, 6, and 7, are missing from this range.

    What we want to know is using Excel 2003, steps on How to Set up a Formula that will either highlight the missing numbers from a complete "non-gapped range of numbers" in column B, or either a formula that will tally Column A and place missing numbers (gaps) in another column.

    Again, our range starts like:

    2
    3
    4
    5
    8
    9
    10
    12
    14
    15
    16
    17
    18
    19
    20
    22
    26
    28
    29

    So we know card 1, 6, 7 13, 21 23, 24, 25 and 27 are not in column A. Our range is a 2000 count range so we can't sit and manually count what is missing. Your help with a formula would help me tremendously.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Validating missing numbers (highlighting comparison column)

    if your numbers are sequential, use a formula like this to identify the gaps....use filters to find where the gaps are after you copy the formula down

    =IF(A2-A1<>1,"Check","")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    Corona, CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Validating missing numbers (highlighting comparison column)

    FDibbins-thank you for your reply. Yes the numbers are sequential. It's a compilation of numbers derived from several databases whereas we are trying to find out which numbers are not in use. My list is a numbers of just that (Numbers not being used). However the issue is: I need to ask a supplier to replenish 2000 items using numbers in my range - but I must provide to them an exclusion list which will = the gaps (missing numbers from column A). I am not familiar enough with formulas to know how to build the formula.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Validating missing numbers (highlighting comparison column)

    Looks like FDibbins may be offline. Try this:

    With your numbers starting in A2 place this in B2 and drag down:

    =IF(A2-A1=1,"",IF(A2-A1=2,A2-1,MAX(A$1:A1)+1&"-"&A2-1))

  5. #5
    Registered User
    Join Date
    06-21-2012
    Location
    Corona, CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Validating missing numbers (highlighting comparison column)

    Absolute genius!!! Thanks so much; it works out well with minor editing. <I wanna be like you when I grow up.>

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Validating missing numbers (highlighting comparison column)

    Oh no you don't.

    You're welcome. Don't forget to mark your thread as SOLVED (instructions are in rule #9 - click Forum Rules @ top of page to view).

    And thanks for the 'star tap' and the "virtual' hug!
    Last edited by Cutter; 06-21-2012 at 10:06 PM.

  7. #7
    Registered User
    Join Date
    06-21-2012
    Location
    Corona, CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Validating missing numbers (highlighting comparison column)

    I think I got it marked properly. Good night.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Validating missing numbers (highlighting comparison column)

    @ Cutter, thx for the backup ) (i was indeed offline)

    @LeeliCon, glad it worked out for you

  9. #9
    Registered User
    Join Date
    06-21-2012
    Location
    Corona, CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Thumbs up Re: Validating missing numbers (highlighting comparison column)

    Thanks again to you both.

+ 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