Solved

Clear cell with pattern

Posted on 2013-05-15
5
225 Views
Last Modified: 2013-05-16
Is there a way to search every cell containing [pattern] and clear it if the pattern exists?  Searching on this topic has been fruitless for me ... many ways to delete the entire row or filter out the row but I just want to clear contents of a cell if it contains pattern "xyx" anywhere in it.
0
Comment
Question by:avatech
  • 2
  • 2
5 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
Comment Utility
Try this

Select your data
From the ribbon menu select    Data > Filter
From the dropdown at the top of the column
    Select Text filters
    Select contains
    Type your pattern
    Click OK
Now you have a list with the pattern visible
Select this pattern and press the delete key
0
 
LVL 19

Expert Comment

by:helpfinder
Comment Utility
what if you select range where you want to look for a pattern. Then you do Replace (Ctrl+H) and and type in "Find what" your pattern and "Replace with" will be empty, then just click "Replace all"
0
 
LVL 4

Author Comment

by:avatech
Comment Utility
The find/replace only works for what is is explicitly found and not empty the whole cell.  I"ll try the filter idea and see how well that works.
0
 
LVL 19

Accepted Solution

by:
helpfinder earned 250 total points
Comment Utility
OK, let say you want to clear cell if it contains word "text", but in your cell it looks like "this_is_text".
so what if you use Replace (Ctrl+H) but do not define "Find what" like "text" but "*text*"
0
 
LVL 4

Author Closing Comment

by:avatech
Comment Utility
Genius!  I'm embarrassed I hadn't thought of pattern matching with wildcards ... thank you.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

743 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

18 Experts available now in Live!

Get 1:1 Help Now