+ Reply to Thread
Results 1 to 11 of 11

finding missing numbers in multiple excel sheets

  1. #1
    Registered User
    Join Date
    10-12-2017
    Location
    india
    MS-Off Ver
    windows 7
    Posts
    10

    finding missing numbers in multiple excel sheets

    I have numbers from 1 to 65,000 in multiple sheets and the same number was not repeated in multiple sheets. The numbers are not in order and some of the numbers are missed in each sheet. If a number missed in one sheet, it will not missed in other sheet. I was given example here.
    sheet 1 sheet 2 sheet 3 sheet 4(output)
    8 6 16 4
    1 10 2 5
    5 3 9 7
    15 19 14 13
    17 18 20
    11 12


    In the above example, sheet 1, sheet2, sheet 3 consists of missing numbers and sheet 4 is the output consists of missing numbers of all these three sheets. I have to implement this 1 to 65,000 numbers in multiple sheets and the missing numbers of all these sheets are to be displayed in other sheet.

    I am a non computer person and unable to do it with existing functions and macros and unable to do with VBA and macros. Please do the needfultable.jpgtable.jpgtable.jpg
    Attached Images Attached Images
    Last edited by kswapnadevi; 05-16-2018 at 11:45 AM.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: finding missing numbers in multiple excel sheets

    I guess I don't understand...

    Sheet2, row 3 has #3, so why is it in Sheet4? Sheet 1 row 3 has #5, so that too should not be in Sheet4?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: finding missing numbers in multiple excel sheets

    Please provide a better explanation of what you need and please attach a workbook.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Registered User
    Join Date
    10-12-2017
    Location
    india
    MS-Off Ver
    windows 7
    Posts
    10

    Re: finding missing numbers in multiple excel sheets

    You are correct sir. The output sheet 4 has mistake sir. sorry. It should have the numbers of 7, 12, 13, 18, 20 which are missed in first three sheets.

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: finding missing numbers in multiple excel sheets

    As per my previous request, please provide a workbook with the same structure as the book you plan to use, so that we can know how to write the code. Thanks.

    How many sheets will the real workbook have? just 1-3 and an output sheet? Are the columns/rows always the same or will it vary? We need more detail please.

  6. #6
    Registered User
    Join Date
    10-12-2017
    Location
    india
    MS-Off Ver
    windows 7
    Posts
    10

    Re: finding missing numbers in multiple excel sheets

    Missing numbers in a single column which are not in sorted order sir is enough sir.
    Input Output
    3 1
    5 2
    9 4
    10 6
    17 7
    15 8
    11
    12
    13
    14
    16table.jpg
    Last edited by kswapnadevi; 05-25-2018 at 02:09 PM.

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: finding missing numbers in multiple excel sheets

    kswapnadevi,

    Doing across many sheets is not a problem... I just wanted more detail.
    But ok... lets focus on one column for now then... Here is my question:

    In OUTPUT (in the picture), the missing numbers are the missing ones between 1 and 13. So is that because in INPUT, the highest number is 13?

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: finding missing numbers in multiple excel sheets

    Sheet1-3 has data in col.A.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    10-12-2017
    Location
    india
    MS-Off Ver
    windows 7
    Posts
    10

    Re: finding missing numbers in multiple excel sheets

    yes sir. As per that list it is 13 sir.

  10. #10
    Registered User
    Join Date
    10-12-2017
    Location
    india
    MS-Off Ver
    windows 7
    Posts
    10

    Re: finding missing numbers in multiple excel sheets

    Sir, I tried the above code on original data which consists of 21 sheets and value upto 70000. It is giving error sir. I also attached the original data sir.

    Sub test()
    Dim i As Long, e, x
    x = [transpose(row(1:70000))]
    For i = 1 To 21
    For Each e In Sheets(i).Range("a1", Sheets(i).Range("a" & Rows.Count).End(xlUp)).Value
    If (e > 0) * (e <= 70000) Then x(CLng(e)) = False
    Next
    Next
    x = Filter(x, False, 0)
    Sheets("sheet22").Cells(1).Resize(UBound(x) + 1).Value = Application.Transpose(x)
    End Sub
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: finding missing numbers in multiple excel sheets

    1)
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    2)
    I have numbers from 1 to 65,000 in multiple sheets
    value upto 70000
    Makes big difference in cod

    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 07-24-2013, 03:30 PM
  2. Finding Duplicate Serial Numbers in multiple sheets
    By leeaw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2013, 12:33 AM
  3. Finding out missing numbers
    By kwfine in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-03-2009, 07:29 AM
  4. Finding missing numbers
    By BrettLowers in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-25-2008, 03:08 PM
  5. Finding the missing numbers
    By debra in forum Excel General
    Replies: 5
    Last Post: 11-14-2006, 11:47 PM
  6. Finding numbers missing from a sequence
    By andy in forum Excel General
    Replies: 4
    Last Post: 04-08-2005, 12:06 PM
  7. Help finding missing numbers
    By fuegoman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-03-2005, 07:54 PM
  8. finding missing numbers
    By static69 in forum Excel General
    Replies: 2
    Last Post: 02-05-2005, 08:14 PM

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