how to compare data in 2 column

Gokrish

New Member
Joined
Jul 30, 2004
Messages
41
I have 357 data in column 1 and 63 data in column B. All the data in column B is contained in column A. I want to compare column A and B and get a "true" if the item in column B is in column A, or get False. So I am expecting 63 "true". Can anyone help me with this, it is kind of urgent. Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You could use a sumif command

assuming that col 1 is A and that your data starts in A1 then:
Code:
=sumif($b$1:$b:67,a1,$c$1:$c$677)

That would go in d1

Before it will work you need to put a list of 1 in c1-c67

This will return a value of 1 if the value is found and otherwise a value of 0. You can also copy this formula down from a1 - a357

Hope that helps.
hayden
 
Upvote 0
Or something like the following in Column C downwards:
=OR(EXACT(B1, $A$1:$A$357))
remember to enter it with CTRL+SHIFT+ENTER
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,684
Members
449,048
Latest member
81jamesacct

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