Pairing cells according multiple criteria.

sergiopcrt

New Member
Joined
May 12, 2017
Messages
12
Hi Everyone,

I have the following dataset were all ID's are duplicated but I want to flag all the Pairs that have a "NO_MATCH" in the field ANALYSIS_1 so I can filter them out and work on them.



A1IDANALYSIS_1ANALYSIS_2
A220640311_MATCHFALSE
A320640311_MATCHFALSE
A420640501_MATCHFALSE
A520640501_MATCHFALSE
A620640511_MATCHFALSE
A720640511_MATCHFALSE
A820640751_MATCHFALSE
A920640751_MATCHFALSE
A1020641011_MATCHPAIR
A112064101NO_MATCHPAIR
A1220641061_MATCHPAIR
A1320641061_MATCHFALSE




For the NO_MATCH found on C11 I'd like to have row 11 and row 10 marked as "PAIR" and try comparing each cell to the one immediately above and below, but I have 1 incorrect flag.

=IF(AND(OR(C11="NO_MATCH"C10="NO_MATCH",C12="NO_MATCH"),OR(B11=B10,B11=B12)),"PAIR")

Also, is it possible with IDs replicated 3 and 4 times?

can you guys help me? This doesn't seem to complicated, but somehow I can't get my head around it.

Thanks in advance!
Sergio
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How about
+Fluff New.xlsm
ABCD
1A1IDANALYSIS_1ANALYSIS_2
2A220640311_MATCH 
3A320640311_MATCH 
4A420640501_MATCH 
5A520640501_MATCH 
6A620640511_MATCHPair
7A720640511_MATCHPair
8A82064051NO_MATCHPair
9A920640751_MATCH 
10A1020641011_MATCHPair
11A112064101NO_MATCHPair
12A1220641061_MATCH 
13A1320641061_MATCH 
Master
Cell Formulas
RangeFormula
D2:D13D2=IF(COUNTIFS(B:B,B2,C:C,"NO_MATCH")>0,"Pair","")
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,863
Messages
6,121,978
Members
449,058
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top