Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Search and filter macro

Posted on 2014-12-01
2
Medium Priority
?
63 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 27

Accepted Solution

by:
ProfessorJimJam earned 1600 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 34

Assisted Solution

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

Contains:    "Dir"

Thanks
Rob H
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
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.

972 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