Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Using Wildcard in Excel - Excel Tips and Tricks
2 Views • Jun 19, 2025
Description
In Excel, the asterisk symbol (*) is called a wildcard character. Wildcard characters are used as placeholders to match one or more characters in a text string.
When you use the "Find and Replace" function in Excel to find " *" (space followed by an asterisk), it will find all occurrences of that combination of characters after space, and replace them with whatever you specify, in this case a blank. Hence last name is retained.
Keep First Name
1) Ctrl+H
2) Find what as " *" (without double quotes)
3) Replace with as BLANK
4) Replace All
On the other hand, when you use the "Find and Replace" function in Excel to find "* " (asterisk followed by a space), it will find all occurrences of that combination of characters before the last space, and replace them with whatever you specify, in this case a blank as well. Hence last name is retained.
Keep Last Name
1) Ctrl+H
2) Find what as "* " (without double quotes)
3) Replace with as BLANK
4) Replace All
Just as a demo, if you use the "Find and Replace" function in Excel to find "*" (no spaces), everything is replaced with whatever you specify, in this case a blank as well.
Find and Replace,
More from User
DELETE rows in Excel without affecting other rows - Excel Tips and Tricks
ExcelTips247
I Created a UNIQUE() Function For Excel 2016 and Older Versions - Excel Tips and Tricks
ExcelTips247
Compare Two Tables In Excel - Excel Tips and Tricks
ExcelTips247
TOCOL and TOROW Functions in Excel - Excel Tips and Tricks
ExcelTips247
I Created a XLOOKUP() Function For Excel 2016 and Older Versions - Excel Tips and Tricks
ExcelTips247
Why Use VLOOKUP() with MATCH() in Excel - Excel Tips and Tricks
ExcelTips247
Related Videos
Can I use a wildcard in a SUMIF? - Excel Tips and Tricks
ExcelTips247
How to Calculate the Weighted Average in Excel (Using the Function SUMPRODUCT) - Excel Tips and Tricks
ExcelTips247
UPDATED! Auto Expand Drop Down List Using Dynamic Array In Excel - Excel Tips and Tricks
ExcelTips247
Calculate commission using dynamic array in Excel - Excel Tips and Tricks
ExcelTips247
How to compare two lists in Excel using Conditional Formatting - Excel Tips and Tricks
ExcelTips247
Setup Outlook Teams meeting Using Excel VBA - Excel Tips and Tricks
ExcelTips247