VBA Code to look for ID number in two sheets (Novice here)

coolhanddan

New Member
Joined
Jun 2, 2011
Messages
14
Hi,

I would like to look at ID numbers in two worksheets, (sheet1 and sheet2) and if the number (in column A) occurs in both, to put a marker on one of them, called lets say (INDV). I have tried a couple of ways, but I am making a mistake somewhere.

Any advice?

Daniel
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Thanks, but something isnt working. It says that I do not have enough resources to complete, Sheet 1 has 18000 and B has about 4.
 
Upvote 0
Did you test it on a smaller range too see if it works at all? Also don't forget your dollar signs.

=IF(ISNA(VLOOKUP(A2,Sheet2!$A$2:$A$7,1,FALSE)),"","INDV")
 
Upvote 0

Forum statistics

Threads
1,215,737
Messages
6,126,558
Members
449,318
Latest member
Son Raphon

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