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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,215,455
Messages
6,124,935
Members
449,195
Latest member
Stevenciu

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