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!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,941
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,517
Messages
5,832,222
Members
430,116
Latest member
d1pakjha

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