Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

My experience with Windows 10 over a one year period and suggestions for smooth operation
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

839 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