Complex (Possibly) Formula Assistance Required - Find Duplicates

%3CLINGO-SUB%20id%3D%22lingo-sub-2347620%22%20slang%3D%22en-US%22%3EComplex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2347620%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENew%20to%20the%20community%20and%20really%20hoping%20someone%20can%20help!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20currently%20have%202%20sheets%20in%20Excel%20(I%20think%20365)%20that%20I%20am%20hoping%20to%20find%20duplicates%20on%2C%20let's%20just%20call%20them%20Sheet%201%20and%20Sheet%202%20for%20simplicity%20sake.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20find%20out%20whether%20the%20File%20ID%20(Column%202%2FSheet%201)%20and%20the%20Part%20(Column%203%2FSheet%201)%20are%20duplicate%20values%20of%20the%20File%20ID%20(Column%203%2FSheet%202)%20and%20(Column%204%2FSheet%202).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20the%20following%20example%20would%20be%20a%20duplicate%3A%3C%2FP%3E%3CP%3EColumn%202%20%2F%20Sheet%201%20was%20123456%20AND%20Column%203%20%2F%20Sheet%201%20was%204%26nbsp%3B%3C%2FP%3E%3CP%3EAND%3C%2FP%3E%3CP%3EColumn%203%20%2F%20Sheet%202%20was%20123456%20AND%20Column%203%20%2F%20Sheet%201%20was%204%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHOWEVER%20this%20example%20would%20NOT%3A%3C%2FP%3E%3CP%3EColumn%202%20%2F%20Sheet%201%20was%20123456%20AND%20Column%203%20%2F%20Sheet%201%20was%204%26nbsp%3B%3C%2FP%3E%3CP%3EAND%3C%2FP%3E%3CP%3EColumn%203%20%2F%20Sheet%202%20was%20123456%20AND%20Column%203%20%2F%20Sheet%201%20was%202%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20help%3F%20I%20have%20a%20thousand%20rows%20to%20check%20and%20can't%20afford%20to%20do%20each%20one%20individually!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2347620%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2347853%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2347853%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1051645%22%20target%3D%22_blank%22%3E%40Mollie1247%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%3C%2FP%3E%3CP%3ESo%20the%20following%20example%20would%20be%20a%20duplicate%3A%3C%2FP%3E%3CP%3EColumn%202%20%2F%20Sheet%201%20was%20123456%20AND%20Column%203%20%2F%20Sheet%201%20was%204%26nbsp%3B%3C%2FP%3E%3CP%3EAND%3C%2FP%3E%3CP%3EColumn%203%20%2F%20Sheet%202%20was%20123456%20AND%20Column%203%20%2F%20Sheet%201%20was%204%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethen%20what%20is%20on%20column%202%20sheet%201%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2362918%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362918%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1047584%22%20target%3D%22_blank%22%3E%40Yea_So%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESheet%201%3A%3C%2FP%3E%3CTABLE%20width%3D%22232%22%3E%3CTBODY%3E%3CTR%3E%3CTD%3EFile%20Name%3C%2FTD%3E%3CTD%3EID%3C%2FTD%3E%3CTD%3EPart%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EIO%2FA14141%3C%2FTD%3E%3CTD%3EA14141%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EIO%2FA32691%3C%2FTD%3E%3CTD%3EA32691%3C%2FTD%3E%3CTD%3E2%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESheet%201%3A%3C%2FP%3E%3CTABLE%20width%3D%22232%22%3E%3CTBODY%3E%3CTR%3E%3CTD%3EFile%20Name%3C%2FTD%3E%3CTD%3EID%3C%2FTD%3E%3CTD%3EPart%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EA14141%3C%2FTD%3E%3CTD%3E6%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EA32691%3C%2FTD%3E%3CTD%3E2%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHopefully%20this%20helps!%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20Row%20one%20would%20NOT%20be%20a%20duplicate%20because%20it%20is%20a%20different%20part%20-%20but%20row%202%20would%20because%20both%20column%26nbsp%3B%202%20AND%203%20match%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2362921%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362921%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1051645%22%20target%3D%22_blank%22%3E%40Mollie1247%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20both%20worksheets%20are%20formatted%20that%20way%20you%20can%20use%20power%20query%20to%20remove%20duplicates%20in%20a%20snap.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2362925%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362925%22%20slang%3D%22en-US%22%3EI've%20never%20used%20power%20query%20before...%3CBR%20%2F%3E%3CBR%20%2F%3EThere's%20actually%20more%20than%20one%20sheet%20-%20but%20all%20will%20be%20compared%20to%20sheet%201.%3CBR%20%2F%3E%3CBR%20%2F%3EAll%20sheets%20vary%20from%2050%20rows%20-%20a%20couple%20of%20thousand....%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2362928%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362928%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1051645%22%20target%3D%22_blank%22%3E%40Mollie1247%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20many%20sheets%3F%20I%20imagine%20all%20the%20sheets%20have%20identical%20in%20tables%20(columns)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2363039%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363039%22%20slang%3D%22en-US%22%3E5%20sheets%20-%20currently%20they%20aren't%20all%20identical%20but%20they%20can%20be%20with%20little%20effort%20if%20that%20makes%20it%20easier%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2363054%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363054%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1051645%22%20target%3D%22_blank%22%3E%40Mollie1247%3C%2FA%3E%26nbsp%3B%20can%20you%20share%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2363055%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363055%22%20slang%3D%22en-US%22%3EUnfortunately%2C%20no.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20contains%20confidential%20information.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2363056%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363056%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1051645%22%20target%3D%22_blank%22%3E%40Mollie1247%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fyoutu.be%2FBDHX8GT6UpQ%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fyoutu.be%2FBDHX8GT6UpQ%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2363648%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363648%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1051645%22%20target%3D%22_blank%22%3E%40Mollie1247%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20purpose%20is%20to%20find%20duplicates%20you%20may%20add%20helper%20column%20to%20Sheet2%20with%20formula%20like%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DCOUNTIFS(Sheet1!B%3AB%2CB2%3AB300%2CSheet1!C%3AC%2CC2%3AC300)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E(assuming%20you%20are%20on%20365)%20and%20filter%20on%20values%20not%20equal%20to%20zero%2C%20it%20returns%20duplicates.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20to%20merge%20without%20duplicates%20it's%20better%20to%20convert%20ranges%20in%20the%20sheets%20into%20structured%20tables%20and%20merge%20with%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DLET(%0A%20%20fst%2C%20%20FILTER(Table1%2CCOUNTIFS(Table1%5BID%5D%2CTable2%5BID%5D%2CTable1%5BPart%5D%2CTable2%5BPart%5D))%2C%0A%20%20snd%2C%20%20FILTER(Table2%2CCOUNTIFS(Table2%5BID%5D%2CTable1%5BID%5D%2CTable2%5BPart%5D%2CTable1%5BPart%5D))%2C%0A%20%20rfst%2C%20ROWS(fst)%2C%0A%20%20rsnd%2C%20ROWS(snd)%2C%0A%20%20k%2C%20%20%20%20SEQUENCE(rfst%2Brsnd)%2C%0A%20%20IF(k%26lt%3B%3Drfst%2C%20INDEX(fst%2C%20k%2C%20%7B1%2C2%7D)%2C%20INDEX(snd%2C%20k-rfst%2C%20%7B1%2C2%7D))%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2370729%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2370729%22%20slang%3D%22en-US%22%3EHey%20Sergei%2C%3CBR%20%2F%3E%3CBR%20%2F%3ENot%20really%20sure%20I%20understand%20your%20COUNTIF%20function%20-%20I've%20tried%20applying%20it%20to%20my%20spreadsheet%20but%20it%20brings%20back%20all%200's.....%20which%20I%20know%20is%20incorrect.%3CBR%20%2F%3E%3CBR%20%2F%3EI'm%20trying%20to%20compare%20sheets%202%2C3%2C4%2C5%20with%20sheet%201%20and%20would%20like%20to%20avoid%20merging%20the%20sheets%20is%20possible.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2370772%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2370772%22%20slang%3D%22en-US%22%3EHello%20-%20I'm%20struggling%20to%20see%20how%20power%20query%20can%20assist%20me....%3CBR%20%2F%3E%3CBR%20%2F%3EIt's%20finding%20the%20duplicates%20in%20the%20query%2C%20but%20I%20need%20those%20duplicates%20highlighted%20in%20the%20original%20tables....%20Can%20you%20advise%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2372395%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2372395%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1051645%22%20target%3D%22_blank%22%3E%40Mollie1247%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHow%20COUNTIFS()%20works%20is%20here%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fcountifs-function-dda3dc6e-f74e-4aee-88bc-aa8c2a866842%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECOUNTIFS%20function%20-%20Office%20Support%20(microsoft.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fexceljet.net%2Fexcel-functions%2Fexcel-countifs-function%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHow%20to%20use%20the%20Excel%20COUNTIFS%20function%20%7C%20Exceljet%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhy%20it%20doesn't%20work%20in%20your%20case%20-%20hard%20to%20say%20without%20the%20sample%20file.%3C%2FP%3E%0A%3CP%3EIf%20you%20need%20to%20highlight%20duplicates%20you%20may%20apply%20conditional%20formatting%20rule%20with%20practically%20the%20same%20formula%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20560px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282202iB047E35A0EBC6659%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2373138%22%20slang%3D%22en-US%22%3ERe%3A%20Complex%20(Possibly)%20Formula%20Assistance%20Required%20-%20Find%20Duplicates%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2373138%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1051645%22%20target%3D%22_blank%22%3E%40Mollie1247%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20what%20I%20can%20understand%20in%20how%20you're%20describing%20the%20geography%20of%20Sheet1%2C%20this%20is%20how%20it%20looks%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Yea_So_0-1621533555578.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282326iF28E5F274877787A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Yea_So_0-1621533555578.png%22%20alt%3D%22Yea_So_0-1621533555578.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eand%20Sheet2%2C%20this%20is%20how%20it%20looks%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Yea_So_1-1621533603509.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282327iE1B855F4CBA6B45B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Yea_So_1-1621533603509.png%22%20alt%3D%22Yea_So_1-1621533603509.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EMy%20question%20is%3A%3C%2FP%3E%3CP%3Eare%20all%20the%20other%20Sheets%20similar%20to%20Sheet2%3F%26nbsp%3B%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi all!

 

New to the community and really hoping someone can help!

 

I currently have 2 sheets in Excel (I think 365) that I am hoping to find duplicates on, let's just call them Sheet 1 and Sheet 2 for simplicity sake.

 

I need to find out whether the File ID (Column 2/Sheet 1) and the Part (Column 3/Sheet 1) are duplicate values of the File ID (Column 3/Sheet 2) and (Column 4/Sheet 2).

 

So the following example would be a duplicate:

Column 2 / Sheet 1 was 123456 AND Column 3 / Sheet 1 was 4 

AND

Column 3 / Sheet 2 was 123456 AND Column 3 / Sheet 1 was 4

 

HOWEVER this example would NOT:

Column 2 / Sheet 1 was 123456 AND Column 3 / Sheet 1 was 4 

AND

Column 3 / Sheet 2 was 123456 AND Column 3 / Sheet 1 was 2

 

Can anyone help? I have a thousand rows to check and can't afford to do each one individually!

 

Thanks

 

14 Replies

@Mollie1247 

If

So the following example would be a duplicate:

Column 2 / Sheet 1 was 123456 AND Column 3 / Sheet 1 was 4 

AND

Column 3 / Sheet 2 was 123456 AND Column 3 / Sheet 1 was 4

 

then what is on column 2 sheet 1?  <==== my question might seem irrelevant but believe me it is.

@Yea_So 

 

Sheet 1:

File NameIDPart
 A141411
 A326912

 

Sheet 2:

File NameIDPart
 A141416
 A326912

 

Hopefully this helps!

So Row one would NOT be a duplicate because it is a different part - but row 2 would because both column  2 AND 3 match

Hi @Mollie1247 

 

If both worksheets are formatted that way you can use power query to remove duplicates in a snap.

I've never used power query before...

There's actually more than one sheet - but all will be compared to sheet 1.

All sheets vary from 50 rows - a couple of thousand....

Hi @Mollie1247 

 

How many sheets? I imagine all the sheets have identical in tables (columns)?

5 sheets - currently they aren't all identical but they can be with little effort if that makes it easier
Unfortunately, no.

It contains confidential information.
Get 20-hours of Excel 2016 training here ► https://www.simonsezit.com/course-category/excel/During this Microsoft Excel 2016 training tutorial video, discove...

@Mollie1247 

If the purpose is to find duplicates you may add helper column to Sheet2 with formula like

=COUNTIFS(Sheet1!B:B,B2:B300,Sheet1!C:C,C2:C300)

(assuming you are on 365) and filter on values not equal to zero, it returns duplicates.

 

If to merge without duplicates it's better to convert ranges in the sheets into structured tables and merge with

=LET(
  fst,  FILTER(Table1,COUNTIFS(Table1[ID],Table2[ID],Table1[Part],Table2[Part])),
  snd,  FILTER(Table2,COUNTIFS(Table2[ID],Table1[ID],Table2[Part],Table1[Part])),
  rfst, ROWS(fst),
  rsnd, ROWS(snd),
  k,    SEQUENCE(rfst+rsnd),
  IF(k<=rfst, INDEX(fst, k, {1,2}), INDEX(snd, k-rfst, {1,2}))
)
Hey Sergei,

Not really sure I understand your COUNTIF function - I've tried applying it to my spreadsheet but it brings back all 0's..... which I know is incorrect.

I'm trying to compare sheets 2,3,4,5 with sheet 1 and would like to avoid merging the sheets is possible.
Hello - I'm struggling to see how power query can assist me....

It's finding the duplicates in the query, but I need those duplicates highlighted in the original tables.... Can you advise?

@Mollie1247 

How COUNTIFS() works is here

COUNTIFS function - Office Support (microsoft.com)

How to use the Excel COUNTIFS function | Exceljet

 

Why it doesn't work in your case - hard to say without the sample file.

If you need to highlight duplicates you may apply conditional formatting rule with practically the same formula

image.png

Hi @Mollie1247 

 

From what I can understand in how you're describing the geography of Sheet1, this is how it looks:

Yea_So_0-1621533555578.png

and Sheet2, this is how it looks:

Yea_So_1-1621533603509.png

My question is:

are all the other Sheets similar to Sheet2?  Thanks