VBA to Import Data from Table Based on Cell value

notaguru1

New Member
Joined
Jun 9, 2015
Messages
12
Hi,

I have 2 sheets, one with a table full of data and another with just some static data fields. I'd like to import data from sheet "All Table" into a brand new sheet called "Txn 2" based on cell D7 in sheet "Static Data".

The Identifier in cell D7 in the "Static Data" sheet will match the identifier field in column B of the "All Table" sheet. So when there's a value match I'd like to bring in all rows that have that ID in column B. If not matches are found I'd like a prompt to come up that days "No Transactions Found"

I'll assign a button to this macro so it can done be on demand.

Thanks for your help :)
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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