Matching numbers in two columns

Bing

New Member
Joined
May 29, 2002
Messages
4
I am experiencing some difficulties matching numbers in two columns in Excel. My project requires me to figue out whether all the numbers in column A can be found in column B. Can anybody tell me how to do it? Thank you very much.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Not sure if this is the easiest or best way to go about this, but it works for me. Try copying your two columns to another worksheet.

1. Change the font color of column A
2. Cut column A and paste it in column B, underneath the last value in this column.
3. Sort Ascending (A-Z) Now you should have just one column containing all data.
4. In the next column over, insert this formula - IF(B1=B2,"Match","")

Hope this works for you.
 
Upvote 0
Add on to my last post:

Drag your formula =IF(B1=B2,"Match","") down to the last value in column B
 
Upvote 0
On 2002-05-30 11:28, Bing wrote:
I am experiencing some difficulties matching numbers in two columns in Excel. My project requires me to figue out whether all the numbers in column A can be found in column B. Can anybody tell me how to do it? Thank you very much.

In column C enter and copy down as far as needed:

=(COUNTIF(B:B,A2)>0)+0

where A2 houses the first entry to check whether it is also in B.

The formula gives 1 if A-entry occurs at least once in B, otherwise 0.

You can also use conditional formatting on A to hilite the entries that are also in B.
This message was edited by Aladin Akyurek on 2002-07-23 06:25
 
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,717
Members
449,050
Latest member
MiguekHeka

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