Features of !SEMTools
↑ Navigate Excel tasks and !SEMTools add-in features ↑

Delete cells containing numbers

, creator of !SEMToolsUpdated 4 min readTopics: Text and characters
Delete rows containing Latin letters, numbers, a word or words from a list in Excel
The last column drops rows with a number written as a separate word, so «Puma RS-X» stays.

There are many times you need to remove values that contain number characters — for example, cleaning product names like “iPhone 14 Pro,” stripping order IDs from comments, or deleting rows with tracking codes. Below are fast ways to delete such cells (or the rows they’re in) using built-in Excel tools and the !SEMTools add-in.

Built-in Excel: delete numeric-only cells (no text)

If you only need to remove cells that are numbers by value (not text mixed with numbers), use Go To Special:

  1. Select the target range.
  2. Home → Find & Select → Go To Special… → Constants → check only Numbers → OK.
  3. Press Delete to clear, or right-click → Delete… to shift cells or remove rows.

Note: this won’t catch cells like “Model 300” (text + number characters). For that, use a helper formula (below) or !SEMTools.

Built-in Excel: detect any number characters (0–9) with a helper column

To find cells that contain at least one number character anywhere in the text, add a helper column with this formula. It returns TRUE if the adjacent cell contains number characters (0–9):

=SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},A2)))>0
Flag cells with digits
B2=SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},A2)))>0
AB
1TextHas digits?
2iPhone 14 ProTRUE=SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},A2)))>0
3Blue widgetFALSE=SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},A3)))>0
4Order #A12TRUE=SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},A4)))>0
5No digits hereFALSE=SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},A5)))>0
62026TRUE=SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},A6)))>0

SEARCH looks for all ten digits at once; ISNUMBER and SUMPRODUCT count how many were found. Filter by TRUE and delete — unlike Go To Special → Constants → Numbers, this catches “iPhone 14 Pro” too.

How to use:

  1. Put the formula in B2 and fill down alongside your data in A.
  2. Filter the helper column for TRUE.
  3. Select the visible rows and either clear the cells in column A, delete the cells (shift up/left), or delete entire rows.
cells with numbers to get rid of

Variation: mark rows where any column contains number characters

If your table spans columns A:D and you want to delete any row that has number characters somewhere in those columns, use:

=LET(rng,A2:D2,SUM(BYCOL(rng,LAMBDA(c,SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},c))))))>0)
Flag rows where any column has digits (Excel 365)
E3=LET(rng,A3:D3,SUM(BYCOL(rng,LAMBDA(c,SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},c))))))>0)
ABCDE
1ABCDAny digits in A:D?
2AnnaSalesNYFALSE=LET(rng,A2:D2,SUM(BYCOL(rng,LAMBDA(c,SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},c))))))>0)
3BobR&DLab 2TRUE=LET(rng,A3:D3,SUM(BYCOL(rng,LAMBDA(c,SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},c))))))>0)
4CleoHRLAnoteFALSE=LET(rng,A4:D4,SUM(BYCOL(rng,LAMBDA(c,SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},c))))))>0)
5DanOpsext. 104TRUE=LET(rng,A5:D5,SUM(BYCOL(rng,LAMBDA(c,SUMPRODUCT(--ISNUMBER(SEARCH({0,1,2,3,4,5,6,7,8,9},c))))))>0)

BYCOL runs the digit check on every cell of the row, SUM adds the results. Bob (Lab 2) and Dan (ext. 104) are flagged.

The formula previously shown here was missing two closing brackets; this is the corrected version. A shorter equivalent that works in Excel 2019 too: =COUNT(SEARCH({0,1,2,3,4,5,6,7,8,9},CONCAT(A2:D2)))>0. Filter for TRUE and delete those rows.

Tips to avoid accidental deletions

  • Backup first. Deletions that shift cells or remove rows are hard to undo later.
  • Numbers as text? The helper formula catches text like “Room 12B,” which is often what you want.
  • Keep IDs? If some numbers (like SKUs) must stay, add a filter step to exclude known prefixes/suffixes before deleting.

With !SEMTools, you can instantly remove cells that contain number characters across a selection.

Two commands cover this task, depending on what should go:

  1. To clear the cells and keep the rows, select the range and run DELETE → Cells → By content → By RegExp pattern. Enter \d as the pattern: every cell with at least one digit is cleared.
  2. To delete the whole rows, select one column and run DELETE → Ranges → Rows on criteria in selected column → If cell CONTAINS... → Numbers.

This saves time compared with helper columns and filters, especially on big tables.


See also:


Need to delete cells containing number characters across thousands of rows — fast? Install !SEMTools and clean your data in a couple of clicks.