You could just import the entire file and use autofilter or for future reference, take the time to learn how to use MSQuery. It is a very handy tool that is underused.
From the workheet Menubar. Select:
Menu Option - Data
Menu Option - Import External Data
Menu Option - New Database Query
Select 'New Data Source' in the listbox
Click Ok
Name your Datasource what ever you wish
Select a driver: Microsoft Text Driver (*.txt; *.csv) or any other driver that will work with csv files
Select the directory that contains your csv file.
Select your file/table
Click Ok
The query wizard should pop up
Select all of the fields that you wish to return by double clicking each
Click Next
Select the column that contains your phone numbers
Set the filter option such as ( begins with | 503 ) or ( begins with | (503) )
Click Next
Select any Sort options or skip this and...
...Click Next
Select 'Return Data to MS Excel'
Save your query definition here if you wish. (little button upper right)
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.