Solved

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

Posted on 2013-01-15
2
309 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 119

Accepted Solution

by:
Rey Obrero 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Outlook Free & Paid Tools
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now