+ Reply to Thread
Results 1 to 6 of 6

Finding the missing numbers

  1. #1
    Registered User
    Join Date
    12-04-2005
    Posts
    5

    Finding the missing numbers

    Each month I get a list of whole numbers, from 1 to around 5000, in a mostly random order. Each month some of those numbers (around ten to twenty of them) are no longer there and new numbers are tacked on. I need a way of finding out what numbers that were on the October list are not on the November list. I don't care about the new numbers added. What is the trick? Thanks in advance.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can you give more details

    Does the Oct data get deleted. Does the new data overwrite all the old data or just some cells

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    with the October #'s ina spreadsheet ypu could use MATCH or VLOOKUP to id the ones included (or excluded) from the November #'s
    not a professional, just trying to assist.....

  4. #4
    Registered User
    Join Date
    12-04-2005
    Posts
    5
    I have access to the new numbers early in each new month. I can copy and paste the numbers onto a excel spreadsheet column and my thoughts were to just paste the new months numbers (1 to around 5000 with a few missing ones) in a column next to the previous months numbers and have a macro find which numbers on the old month are not on the new month.

    When the next month comes, I would do the same. Nothing fancy. Only trying to find the numbers missing on the new month that were on the old month.

    A neighbor built a macro and it really started off well but started bogging down around 1000 and basicly gummed up by 4000. I appreciate the help.

  5. #5
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    if one set is in a1:a500, and the other set is in b1:b500, just put
    =match(b1,$a$1:$a$500,0) in c1 and copy down to c5000.

    You will get a N/A for a numbers in column b not found in column a

  6. #6
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    oops - those 500's should be 5000's

+ 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