Originally Posted by
CAntosh
I don't understand the "Duplicate" rules - aren't rows 2/3 on sheet2 duplicates because they have the same Site#? Same with rows 4/5?
Using the helper column on Sheet2, column D to identify duplicates makes the formula easier. Once that column identifies duplicates, you can use the formula below in Sheet3 BC2 to return the appropriate match response. The formula must be array-entered (confirm with Ctrl + Shift + Enter instead of Enter) in BC2:
=IFERROR(IFERROR(INDEX(Sheet2!$D$1:$D$1000, MATCH(1,(Sheet2!$D$1:$D$1000="Duplicate")*($K2=Sheet2!$F$1:$F$1000)*($CD2=Sheet2!$B$1:$B$1000)*((Sheet2!$G$1:$G$1000="CONLAB")+(Sheet2!$G$1:$G$1000="FULLSC")+(Sheet2!$G$1:$G$1000="INST")),0)),INDEX(Sheet2!$J$1:$J$1000, MATCH(1,($K2=Sheet2!$F$1:$F$1000)*($CD2=Sheet2!$B$1:$B$1000)*((Sheet2!$G$1:$G$1000="CONLAB")+(Sheet2!$G$1:$G$1000="FULLSC")+(Sheet2!$G$1:$G$1000="INST")),0))),"")
You can then fill it down as far as you need to. In my attachment, the results are based on my current interpretation of "Duplicates" on sheet 2. If I'm misunderstanding things, all that needs to be adjusted is the formula for duplicates in sheet2, column D. Currently, I'm using:
=IF(COUNTIF($B$2:$B$1000,$B2)>1,"Duplicate","")
If I've got it wrong, please fill me in on what I'm missing about the rules for duplicates and I should be able to help tweak the formula (if necessary).
Bookmarks