Excel tutorial
/

Excel basics

Intermediate

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.

Книга1 - Excel
—☐✕
B2fxToshkent
ABCD
1CustomerCityPhone
2AzizToshkent901234567
3DilnozaTashkent935557788
4JavohirToshkent977001122
5MalikaSamarkand916663344
6SardorToshkent998887766
7
ГотовоКоличество: 5
Three “Toshkent” entries become “Tashkent” in one click

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.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить
Буфер обмена
Calibri ▾11 ▾
Шрифт
Выравнивание
Общий ▾
Число
Условное форматированиеФорматировать как таблицуСтили ячеек
Стили
ВставитьУдалитьФормат
Ячейки
АвтосуммаСортировка и фильтрНайти и выделить
Редактирование
B2fxToshkent
ABCD
1CustomerCity
2AzizToshkent
3DilnozaTashkent
4JavohirToshkent
5
ГотовоКоличество: 3

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.

Книга1 - Excel
—☐✕
B2fxToshkent
ABCD
1CustomerCity
2AzizToshkent
3DilnozaTashkent
4JavohirToshkent
5
ГотовоКоличество: 3

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.

Книга1 - Excel
—☐✕
B2fxTashkent
ABCD
1CustomerCity
2AzizTashkent
3DilnozaTashkent
4JavohirTashkent
5
ГотовоКоличество: 3
Now every row uses the same spelling — filters and PivotTables work correctly

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”.

Книга1 - Excel
—☐✕
A2fxBread (white)
ABCD
1ProductResult
2Bread (white)Bread
3Milk (2.5%)Milk
4Tea (green, 100 g)Tea
5Sugar (1 kg)Sugar
6
ГотовоКоличество: 4
“ (*)” means space, parenthesis, any text, parenthesis. Column B shows what column A becomes after Replace All
Книга1 - Excel
—☐✕
A2fxA*12
ABCD
1CodeProduct
2A*12Notebook
3B*07Pen
4C*31Pencil
5
ГотовоКоличество: 3
~* means “a real asterisk”. Result: A-12, B-07, C-31. With a plain * every code would become “-”

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.
Книга1 - Excel
—☐✕
fx
ABCD
1CustomerCity
2AzizToshkent
3DilnozaTashkent
4JavohirToshkent
5MalikaSamarkand
6SardorToshkent
7
Готово
Find All results: press Ctrl+A in the list and all three cells are selected on the sheet

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.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1City (source)Cleaned
2Toshkent
3Tashkent
4Samarkand
5Toshkent
6
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

24 / 154