Solved

Search and filter macro

Posted on 2014-12-01
2
58 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
[X]
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
2 Comments
 
LVL 26

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 33

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

733 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