


Excel wildcards: a powerful tool for efficient search and filtering
This article will dive into the power of wildcards in Microsoft Excel, including their application in search, formulas, and filters, and some details to note. Wildcards allow you to perform fuzzy matching, making it more flexible to find and process data.
* Wildcards: asterisks ( ) and question marks (?)**
Excel mainly uses two wildcard characters: asterisk (*) and question mark (?).
-
* Asterisk ( ): Any number of characters** The asterisk represents any number of characters, including zero characters.
For example:
-
*OK*
matches cells containing "OK", which can have any number of characters (including zeros) before and after "OK". -
OK*
matches cells starting with "OK", and "OK" can have any number of characters (including zeros). -
*OK
matches cells ending with "OK", and "OK" can be preceded by any number of characters (including zero).
-
Value to be tested | Conditions: *OK* | Conditions: OK* | Conditions: *OK |
---|---|---|---|
OK | match | match | match |
Oklahoma | match | match | Missing |
Shook | match | Missing | match |
Look | match | Missing | Missing |
Looking | match | Missing | Missing |
-
Question mark (?): any single character The question mark represents any single character.
For example:
-
?OK?
Matches a cell containing "OK", with one character before and after "OK". -
OK?
Match a cell that starts with "OK" and is followed by a character. -
?OK
matches a cell that starts with a character followed by "OK".
-
Value to be tested | Conditions:?OK? | Conditions: OK* | Conditions:?OK |
---|---|---|---|
Joke | match | Missing | Missing |
Oka | Missing | match | Missing |
Wok | Missing | Missing | match |
-
Combination of asterisks and question marks You can combine asterisks and question marks to achieve a more accurate match.
For example:
-
??OK*
match starts with two characters, then "OK", followed by any number of characters. -
*OK?
Matches a cell containing "OK" followed by a character. -
?OK*
matches start with a character, then "OK", followed by any number of characters.
-
Value to be tested | Conditions:??OK* | Conditions: *OK? | Conditions:?OK* |
---|---|---|---|
Took | match | Missing | Missing |
Books | match | match | Missing |
Spooky | Missing | match | Missing |
Poky | Missing | match | match |
Jokes | Missing | Missing | match |
Cancel wildcard: tilde (~)
If you need to search for a question mark or asterisk itself, instead of using it as a wildcard, you need to prefix the tilde (~).
For example:
-
~*?
Match cells that start with any number of characters and end with a question mark. -
~*?*
matches the cell containing the question mark. -
*~*?
Matches a cell that starts with any number of characters, followed by an asterisk, and then a character.
Value to be tested | Conditions: *~? | Conditions: *~?* | Conditions: *~*? |
---|---|---|---|
Dinner? | match | match | Missing |
???k | Missing | match | Missing |
D?*y | Missing | match | match |
Application of wildcard characters in search
One of the most common uses of wildcard characters is to find and replace characters in Excel.
Application of wildcard characters in formulas
Wildcards can also be used in various functions' parameters, such as SUMIF
, COUNTIFS
, XLOOKUP
, etc.
Application of wildcard characters in filtering
Wildcards are also suitable for filtering operations.
Things to note
- When using wildcards in formulas, you may encounter problems if you try to find numbers in the range of numbers, because wildcards automatically convert numbers to text.
- Not all functions support wildcards.
- Using wildcards in formulas can make the formula more complicated and increase the risk of errors. Be sure to enclose wildcards in quotes!
In addition to using wildcards in Excel, you can also use them in Microsoft Word to find and replace text. In addition to asterisks and question marks, square brackets ([ ]) can also be used as wildcards to match multiple items.
The above is the detailed content of How You Can Use Wildcards in Microsoft Excel to Refine Your Search. For more information, please follow other related articles on the PHP Chinese website!

Excel wildcards: a powerful tool for efficient search and filtering This article will dive into the power of wildcards in Microsoft Excel, including their application in search, formulas, and filters, and some details to note. Wildcards allow you to perform fuzzy matching, making it more flexible to find and process data. *Wildcards: asterisks () and question marks (?)** Excel mainly uses two wildcards: asterisk (*) and question mark (?). *Asterisk (): Any number of characters** The asterisk represents any number of characters, including zero characters. For example: *OK* Match the cell containing "OK", "OK&q

The tutorial shows how to create multiple IF statements in Excel with AND as well as OR logic. Also, you will learn how to use IF together with other Excel functions. In the first part of our Excel IF tutorial, we looked at how to constru

In this tutorial, you will lean a quick way to calculate percentages in Excel, find the basic percentage formula and a few more formulas for calculating percentage increase, percent of total and more. Calculating percentage is useful in m

Logical operators in Excel: The key to efficient data analysis In Excel, many tasks involve comparing data in different cells. To this end, Microsoft Excel provides six logical operators, also known as comparison operators. This tutorial is designed to help you understand the connotation of Excel logical operators and write the most efficient formulas for data analysis. Excel logical operators equal Not equal to Greater than/less than/greater than/six equal to/less than equal to Common uses of logical operators in Excel Overview of Excel Logical Operators Logical operators in Excel are used to compare two values. Logical operators are sometimes called boolean operators because in any given case, the result of comparison

This concise guide explores Excel's percentage formatting capabilities, covering various scenarios and advanced techniques. Learn how to format existing values, handle empty cells, and customize your percentage display. To quickly apply percentage f

The tutorial explains the essence of Excel logical functions AND, OR, XOR and NOT and provides formula examples that demonstrate their common and inventive uses. Last week we tapped into the insight of Excel logical operators that are us

This guide explores Microsoft Excel's comment and note features, explaining their uses and differences. Both tools annotate cells, but serve distinct purposes and display differently in printed worksheets. Excel Comments: Collaborative Annotations E

Excel template: a tool for efficient office work Microsoft Excel templates are a powerful tool to improve the efficiency of Excel, saving significantly time. After creating a template, you only need a small amount of adjustment to adapt to different scenarios and achieve reuse. Well-designed Excel templates can also improve the aesthetics and consistency of documents, leaving a good impression on colleagues and bosses. The value of templates is particularly prominent for common document types such as calendars, budget planners, invoices, inventory tables, and dashboards. What else is more convenient than just using a spreadsheet that looks beautiful, has a full-featured and is easy to customize? A Microsoft Excel template is a pre-designed workbook or worksheet, most of which


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

WebStorm Mac version
Useful JavaScript development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Notepad++7.3.1
Easy-to-use and free code editor
