+ Reply to Thread
Results 1 to 9 of 9

look for missing numbers between sheets

  1. #1
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2010 (office) 2013 (home)
    Posts
    256

    look for missing numbers between sheets

    Hi

    I have worksheets named "Source" and "sheet 2" contains the same info but in different orders. May i have a formula to look for the missing number that cause the discrepencies?

    Thanks
    Attached Files Attached Files
    Last edited by mingali; 02-27-2010 at 01:22 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: look for missing numbers between sheets

    In C4 on Source, you could try this formula, copied down:

    =IF(A4<>"",IF(ISNUMBER(MATCH(A4,Sheet2!A:A, 0)),"","not found"),"")
    Last edited by JBeaucaire; 02-27-2010 at 12:23 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2010 (office) 2013 (home)
    Posts
    256

    Re: look for missing numbers between sheets

    it does not work well as some codes show in both sheets also appears as "not found". Any other formula offer?

    Thanks

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: look for missing numbers between sheets

    If that is true, then there is a problem with your match strings. The formula should only report "not found" when the item is truly not there.

    Post up a sample workbook and point out where the formula is giving incorrect results. In those cases, examine the cells...are there hidden spaces in the values?

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: look for missing numbers between sheets

    better still ,try telling us which ones aren't found!then we may have a chance of finding out why.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2010 (office) 2013 (home)
    Posts
    256

    Re: look for missing numbers between sheets

    I attached the workbook, please have a look. i applied the formulae to those two wks. eg both wks have 20C01, 20C02 and 20C03 etc but still it was stated not found.

    Thanks
    Attached Files Attached Files
    Last edited by mingali; 02-27-2010 at 12:12 AM.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: look for missing numbers between sheets

    Like so:

    =IF(A4<>"",IF(ISNUMBER(MATCH(A4,Sheet2!A:A, 0)),"","not found"),"")

  8. #8
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2010 (office) 2013 (home)
    Posts
    256

    Re: look for missing numbers between sheets

    Thanks for the answer. It helps a lot.

    In additon, may i know what formula to use in the event of looking for discrepencies in number given the same code? ie 20M11 is 8 for one wks while it is 7 in another.

    Thanks again

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: look for missing numbers between sheets

    In C4 of the source sheet:

    =IF(A4<>"", IF(ISNUMBER(MATCH(A4, Sheet2!A:A, 0)), IF(INDEX(Sheet2!B:B, MATCH(A4, Sheet2!A:A, 0))=B4, "", "not equal"), "not found"), "")

+ 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