Solved

MS Access or MS Excel Query to select only rows with a specific keyword in a column

Posted on 2013-01-15
2
318 Views
Last Modified: 2013-03-16
Hi, I have an excel list with 5,000 records. I need to isolate records from this list based on a keyword value in a specific column.

For example, the client might request we isolate records if a recipient has the keyword "teacher" in the "title" column. A recipient might have "Senior Teacher" or "math teacher", etc for their title.

Can anyone point me to a query  / method I can easily use in MS Excel 2007 or MS Access 2007?

Thanks
0
Comment
Question by:Mark B
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 38780144
you can either import or link to the Excel file from Access

External Data > Import > excel
follow the wizard


after you link or imported the Excel file

create a query like this

select * from TableExcel
where [Title] Not Like "*teacher*"

to show all records with teachers on ttheir Title

select * from TableExcel
where [Title]  Like "*teacher*"
0
 
LVL 18

Expert Comment

by:krishnakrkc
ID: 38781488
In Excel, Goto Data > Filter > Text Filters > Does Not Contain > "Teacher" (without quotes)

Kris
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question