Comparing to see no matchs

SALO

Board Regular
Joined
Jul 27, 2008
Messages
66
I have one column of stock symbols in column (A) In column (B) I have another list of stock symbols. In column (C) (or cell??) I would like to make a formula that looks in column (A) and Column (B) and tells me just the symbols that dont match. Is there a way to do this? Anyhelp would be appreciated.

SALO
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Or you could do it in VBA:

Code:
Sub match()
lastrow = Range("A65536").End(xlUp).Row
For i = 2 To lastrow
    
    If Cells(i, 1) <> Cells(i, 2) Then
    Cells(i, 3) = "Do Not Match"
    End If
    
Next
End Sub
 
Upvote 0
I have one column of stock symbols in column (A) In column (B) I have another list of stock symbols. In column (C) (or cell??) I would like to make a formula that looks in column (A) and Column (B) and tells me just the symbols that dont match. Is there a way to do this? Anyhelp would be appreciated.

SALO
SALO

Can you clarify a couple of things...

1. Do the symbols need to match side-by-side (like Code 1 below) or just anywhere in the columns (like Code 2 below)

2. Are the lists in each column the same length?

3. If my sample data is feasible, what results would you expect from it?

4. If my sample data is not feasible, can you explain why, or provide some small samples and expected results yourself?

Excel Workbook
AB
1List 1List 2
2Code 1Code 1
3Code 2Code 6
4Code 3Code 3
5Code 4Code 4
6Code 5Code 2
Matching
 
Upvote 0
quote=Peter_SSs;1661297]SALO

Can you clarify a couple of things...

1. Do the symbols need to match side-by-side (like Code 1 below) or just anywhere in the columns (like Code 2 below)
Anywhere

2. Are the lists in each column the same length?
No

3. If my sample data is feasible, what results would you expect from it?
Basically have to columns of symbols, Just want to non matching symbols as I mention in my thread. I know could just put them in one coluns then sort them alphabetically and then I would visually see repeat symbol side by side. Just thought there was a formula or better stratygie for this. 4. If my sample data is not feasible, can you explain why, or provide some small samples and expected results yourself? Explained above but I will try the idea of the other threads and let you all know if it works. Thanks for the help

Matching
 
Upvote 0
Would Conditional Formatting like this be any use?

1. Select A2:B7
2. Format|Conditional Formatting...|Condition 1|Formula is: =COUNTIF($A$2:$B$7,A2)=1|Format...|Patterns|choose colour|OK|OK

Adjust the selected range and the range in the formula to match your data.

Excel Workbook
AB
1List 1List 2
2Code 1Code 1
3Code 2Code 6
4Code 3Code 3
5Code 4Code 4
6Code 5Code 2
7Code 7
8
Matching
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A21. / Formula is =COUNTIF($A$2:$B$7,A2)=1Abc
 
Upvote 0

Forum statistics

Threads
1,215,709
Messages
6,126,391
Members
449,311
Latest member
accessbob

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