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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,103
Messages
6,123,108
Members
449,096
Latest member
provoking

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