• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

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

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
Mark B
Asked:
Mark B
1 Solution
 
Rey Obrero (Capricorn1)Commented:
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
 
krishnakrkcCommented:
In Excel, Goto Data > Filter > Text Filters > Does Not Contain > "Teacher" (without quotes)

Kris
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Tackle projects and never again get stuck behind a technical roadblock.
Join Now