Solved

Search and filter macro

Posted on 2014-12-01
2
54 Views
Last Modified: 2014-12-02
Attached is a spend sheet. Column C contains a list of product descriptions. A number of the product descriptions end in "DIRECT DELIVERY" (or some variation of at least). What seems to be consistent is that the letter's "DIR" will always feature in the different variations.

I want to be able to identify all of the cells that feature "DIR" in them and then add a number "1" in a column next to it so these rows can then be filtered separately from the rest of the data.

Is this at all possible?

*See attached*

Rob
A-B-C-analysis.xlsx
0
Comment
Question by:robmarr700
2 Comments
 
LVL 25

Accepted Solution

by:
ProfessorJimJam earned 400 total points
ID: 40474139
create new column next to C then put this formula =IF(ISNUMBER(SEARCH("DIR",C2)), 1,0)

if you want it to be case sensitive for "DIR" then use =IF(ISNUMBER(FIND("DIR",C2)), 1,0)

these will put 1 if found and if not then 0
0
 
LVL 32

Assisted Solution

by:Rob Henson
Rob Henson earned 100 total points
ID: 40475731
Why not just filter on column C with:

Contains:    "Dir"

Thanks
Rob H
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

Suggested Solutions

Title # Comments Views Activity
Office 2016 Excel Issue 4 27
Automating Excel Weekly Report 13 64
Excel VBA When using VLookup 6 29
tricky if formula 2 0
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

863 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

23 Experts available now in Live!

Get 1:1 Help Now