Extracting data from a csv file

Crafty64

Board Regular
Joined
Aug 26, 2010
Messages
55
Hi, I have a very large csv file - so big that when I open it fills up more than the entire number of rows within Excel. However, I only need a fraction of this data - specifically I would like to retrieve data according to a specific criteria. Is there a funky macro that would let me extract data from a csv and dump it into excel but using a filter?

Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
You can use MS Query for this (standalone application commonly also installed when Excel is). You access MS Query via Data>Import External Data in Excel. You can filter the records in MS Query before they are returned to Excel (MS Query itself is not restricted to 65536 records like Excel versions prior to 2007).
 
Upvote 0
You want to go Data>Import External Data>New Database Query>Text Files>Add csv file>Add applicable fields>click on Criteria button on menu and Add Criteria. Here you can apply your filter.
 
Upvote 0
thanks for that...however I can't see text files as an option...though I can see Excel...need to be able to add text files in the drop down list :(
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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