vlookup or index formula

bigmacneb

Board Regular
Joined
Jul 12, 2005
Messages
93
Hello, I have two worksheets. In the first sheet I have a list of numbers (750 rows) in the second worksheeet I have data in column 6 that might match the numbers in Sheet 1. I need to compare all of the numbers in Column 6 to Sheet1 and if there is a match I need it to put the number 1 in column 1.
For example, on sheet 1 is the number 1234. On Sheet 2 in Column 6 there are three instances of 1234. For these three instances, I need to insert the number 1 into column 1 for the row of each instance.
Any help is greatly appreciated.
Thanks!
 

Some videos you may like

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,939
Maybe you want something like this:

=if(isnumber(match(Sheet2!F2,Sheet1!A:A,0)),1,0)

This formula goes in column 1.

Hope that helps.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,577
Messages
5,596,996
Members
414,116
Latest member
sfullnet

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
Top