Find and Replace in Excel (Ctrl+F, Ctrl+H): wildcards and formats
How to quickly find and replace data in Excel: * and ? wildcards, matching entire cells, replacing formats, and the asterisk trap solved with ~*.
A customer list has one city spelled three ways: “Tashkent”, “Toshkent”, “Toshkent city”. Filters and PivotTables treat them as three different cities. Fixing 2,000 rows by hand takes a day; with Find and Replace it takes 10 seconds.
Ctrl + F finds, Ctrl + H replaces. Both live in one dialog on two tabs. It looks simple, but it hides powerful features: wildcards, searching by format and working across the whole workbook.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | City | Phone | |
| 2 | Aziz | Toshkent | 901234567 | |
| 3 | Dilnoza | Tashkent | 935557788 | |
| 4 | Javohir | Toshkent | 977001122 | |
| 5 | Malika | Samarkand | 916663344 | |
| 6 | Sardor | Toshkent | 998887766 | |
| 7 |
Replacing in 5 steps
1
Select the range to change (for example, column B). If only a single cell is selected, Excel searches the entire sheet — other columns may change too.
2
Choose Главная → Найти и выделить → Replace.... Faster: Ctrl + H.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | City | ||
| 2 | Aziz | Toshkent | ||
| 3 | Dilnoza | Tashkent | ||
| 4 | Javohir | Toshkent | ||
| 5 |
3
Type the text to look for in Find what and the new text in Replace with. To delete the text, leave Replace with empty.
4
Click Options for precise searches. Here you get Match case; Match entire cell contents — only when the whole cell matches; Within — sheet or workbook; Look in — formulas or values.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | City | ||
| 2 | Aziz | Toshkent | ||
| 3 | Dilnoza | Tashkent | ||
| 4 | Javohir | Toshkent | ||
| 5 |
5
Click Replace All. Excel reports how many replacements it made: “All done. We made 3 replacements.” If the number is bigger than you expected, undo at once with Ctrl + Z and check your options.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | City | ||
| 2 | Aziz | Tashkent | ||
| 3 | Dilnoza | Tashkent | ||
| 4 | Javohir | Tashkent | ||
| 5 |
Wildcards: * and ?
*— any number of any characters (including none).Aziz*→ “Aziz”, “Azizbek”, “Aziza”.*city→ anything ending in “city”.?— exactly one character.Ali?→ “Alim”, “Alik”, but not “Ali”.??-??→ “01-12”, “AB-07”.~— makes the next character literal:~*is a real asterisk,~?a real question mark.
A powerful trick: delete everything in parentheses. Find what: (*) (with a leading space), Replace with: empty. “Bread (white)” → “Bread”, “Milk (2.5%)” → “Milk”.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Result | ||
| 2 | Bread (white) | Bread | ||
| 3 | Milk (2.5%) | Milk | ||
| 4 | Tea (green, 100 g) | Tea | ||
| 5 | Sugar (1 kg) | Sugar | ||
| 6 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Code | Product | ||
| 2 | A*12 | Notebook | ||
| 3 | B*07 | Pen | ||
| 4 | C*31 | Pencil | ||
| 5 |
Finding and replacing formats
In Options mode, Format... buttons sit next to Find what and Replace with. They work on appearance, not text:
- Leave Find what empty, pick a yellow fill under its Format..., give Replace with a green fill → Replace All: every yellow cell on the sheet turns green.
- Choose Format From Cell... grabs the format by clicking a sample cell, so you don’t hunt for the exact color.
- Text and format can be combined: find cells containing “Overdue” and make them red and bold.
Pro level: Find All and other hidden features
- Find All + [[Ctrl+A]]. Find All lists every match at the bottom of the dialog. Press Ctrl + A in that list and all matching cells on the sheet get selected at once — now you can color, delete or copy them.
- Finding line breaks. To find an Alt + Enter line break inside cells, press Ctrl + J in Find what (the box looks empty, but the character is there). Put a space in Replace with and multi-line text becomes single-line.
- Across the workbook. Within: Workbook — replace on all 12 monthly sheets at once.
- Bulk-editing formulas. With Look in: Formulas you can replace references too:
'Sales 2024'!→'Sales 2025'!— hundreds of formulas now point to the new year’s sheet. - Searching by value. Look in: Values searches formula results — for example, every cell that displays 0.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | City | ||
| 2 | Aziz | Toshkent | ||
| 3 | Dilnoza | Tashkent | ||
| 4 | Javohir | Toshkent | ||
| 5 | Malika | Samarkand | ||
| 6 | Sardor | Toshkent | ||
| 7 |
Try it in the simulator
The simulator has no Find and Replace dialog, but a formula does the same job. Type =ПОДСТАВИТЬ(A2;"Toshkent";"Tashkent") in B2 and fill it down to B5. The formula’s advantage: when the source changes, the result updates too.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | City (source) | Cleaned | ||||||||||||||||||||||
| 2 | Toshkent | |||||||||||||||||||||||
| 3 | Tashkent | |||||||||||||||||||||||
| 4 | Samarkand | |||||||||||||||||||||||
| 5 | Toshkent | |||||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.