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
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
Last edited by mingali; 02-27-2010 at 01:22 PM.
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 theicon 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!)
it does not work well as some codes show in both sheets also appears as "not found". Any other formula offer?
Thanks
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?
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
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
Last edited by mingali; 02-27-2010 at 12:12 AM.
Like so:
=IF(A4<>"",IF(ISNUMBER(MATCH(A4,Sheet2!A:A, 0)),"","not found"),"")
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
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"), "")
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks