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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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.
 
Upvote 0

Forum statistics

Threads
1,217,317
Messages
6,135,847
Members
449,965
Latest member
Ckl43

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