Filter Massive Data by Cell Value on Specific Column

JPWRana

New Member
Joined
May 30, 2013
Messages
29
I have imported a massive amount of data from Access using excel: 43 columns and 43k rows of data on Sheet 2.

Of all that info, Column B (Log Number) has about 500 different values, where each one of those values will be in the 43k rows no more than 80 times. From there, I only need everything that is of one value.

Ex: Log Number 14-2-AGUILAD is in Column B (along with many other columns)

This value of "14-2-AGUILAD" also appears on Sheet 1 in cell A1.

I need a macro that says: Of all of the imported data I have sent to Excel from Access, filter out for ONLY what's in Sheet1!A1.

I am doing it right now using Advanced Filter, but it won't filter for just that section.

Please help?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
You could use a parameter query using SQL. That would allow you to only import the data that you want instead of importing your 43K rows of data then removing all but 80 rows.
 
Upvote 0
SQL is a database language. You can find many articles on the web that provide an overview.
It's not limited to being an Excel thing. It can be used through Excel, but also used by other applications that manage databases.

This video shows how to setup an SQL Parameter Query. The example uses an Excel data source and similar steps can be done to import data from Access using a Parameter to filter by your Log Numbers in Column B.
https://www.youtube.com/watch?v=P9cUYpXIKsU&list=UUlBYq5cbpioOFBqor6SIIBw&feature=c4-overview


Tushar Mehta has a nice set of articles that illustrate how to build queries through a series of examples.
Build Queries
 
Upvote 0
Jerry, this was/is really useful. I went ahead and created a query from Excel and saved that specific query, that way I only have to call up the query, and instead of having ALL the data, I get only the columns I need, and do a partial filter for what I need.

Is there a way where I can filter for what the value is in a specific cell in excel? That is my new biggest issue right now.
 
Upvote 0
Is there a way where I can filter for what the value is in a specific cell in excel? That is my new biggest issue right now.

Near the end of the Video, he describes how to set up the query so it gets the criteria parameter from an Excel cell. Is that what you are wanting?
If not, please clarify.
 
Upvote 0
Jerry... it worked! In fact, it worked better than what I had hoped for!

Now I want to apply it like an array (for a different issue altogether).
I want to use the parametrized query kinda like vlookup, but can't seem to get it.

I would want A2 to get me what I want in B2/C2/D2/E2 just like the video says... except that when I want to do it in like an array sort of function, where A3 will get me what I want in B3/C3/D3/E3, etc... that won't work.

How can I array this?
 
Upvote 0
Now I want to apply it like an array (for a different issue altogether).
I want to use the parametrized query kinda like vlookup, but can't seem to get it.

I would want A2 to get me what I want in B2/C2/D2/E2 just like the video says... except that when I want to do it in like an array sort of function, where A3 will get me what I want in B3/C3/D3/E3, etc... that won't work.

How can I array this?

Sorry, but I'm not understanding what you are trying to do. Could you post a screen shot of example inputs and the desired result?
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

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