Keep only digits with REGEXREPLACE

Premium

In B2, use REGEXREPLACE to remove everything from A2 that is not a digit. \D (capital D) means any character that is not a digit.

B2
ABCDEF
1Phone as typed Digits only
2Tel: 020 7946 0018
3
4
5
6
7
8

Premium lesson

Unlock REGEX functions and every other lesson

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:IFCOUNTIF
Need help?