compare data in two columns - displaying only unique items.

excelbeginner1

New Member
Joined
Dec 13, 2014
Messages
20
Good day
please could you assist me, not sure if it is possible.

I have two columns that return the top three results from a list, i would like to know if there is any way that i could compare the two lists and if the is a duplicate value/result in list b then this
would be removed and the next unique result will be displayed.

Cloumn A must remain unchanged. only column B changes. Clolumns are being populated by coping results.

In the example John appears in a &b , i need to remove it from B so that Paul would be the nexy name

thnk you in advance
 

Attachments

  • Capture.JPG
    Capture.JPG
    15.6 KB · Views: 6

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi

There might be better formula available, but this one might just do (or use a conditional format)
Book1
ABCDEF
1List 1List 2List 2 Filtered
2PeterJamesJames
3MaryJohnPaul
4JohnPaulTed
5TedSusan
6Susan 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18
19
20
Sheet1
Cell Formulas
RangeFormula
E2:E14E2=IFERROR(INDEX($C$2:$C$6,AGGREGATE(15,6,(ROW($C$2:$C$6)-1)/((COUNTIF($A$2:$A$4,$C$2:$C$6)+1)=1),ROW()-1)),"")
E15:E17E15=IF((ROW()-1)>COUNTA($C$2:$C$6),"",INDEX($C$2:$C$6,AGGREGATE(15,6,(ROW($C$2:$C$6)-1)/((COUNTIF($A$2:$A$4,$C$2:$C$6)+1)=1),ROW()-1)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1:C20Expression=ISNUMBER(MATCH($C1;$A:$A;0))textNO


Or alternative, prevent a duplicate to be entered
1588250717420.png


Book1
ABCD
1List 1List 2
2PeterJames
3MaryPaul
4JohnTed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1Expression=ISNUMBER(MATCH($C1;$A:$A;0))textNO
Cells with Data Validation
CellAllowCriteria
C2:C20Custom=ISERROR(MATCH($C2;$A:$A;0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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