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

x
?
Solved

Clear cell with pattern

Posted on 2013-05-15
5
Medium Priority
?
239 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
ID: 39169720
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
ID: 39170670
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
ID: 39171186
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 1000 total points
ID: 39171227
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
ID: 39171453
Genius!  I'm embarrassed I hadn't thought of pattern matching with wildcards ... thank you.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

886 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