Using VBA code to upload another Excel spreadsheet and vlookup

ag522

New Member
Joined
Jul 27, 2017
Messages
1
Hi everyone,

I'm trying to make a code where I can upload one spreadsheet with a list of items into a database. Essentially, I want to be able to run a report of all the items that are in the new spreadsheet to see if "yes" they are listed in the database or "no" they are not.

For example, I'd have my Database spreadsheet that lists:

Item Customer
A Customer1
B Customer2
C Customer3
D Customer1
A Customer2

I want to be able to upload a spreadsheet with

Item Customer
A Customer1
B Customer2

C Customer1

If it could generate a report of some kind or even a message box that can report back "Yes" or "No" that they exist in the database spreadsheet, that would be awesome. In the above example, the 2 bold ones would come back as yes and the normal would come back as no. If that makes sense?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,224,829
Messages
6,181,224
Members
453,025
Latest member
Hannah_Pham93

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