How can I remove non-numeric characters from a cell in Google Sheets? 2

How can I remove non-numeric characters from a cell in Google Sheets?

To remove non-numeric characters from a cell in Google Sheets, you can use the “REGEXREPLACE” function. This function allows you to specify a regular expression pattern and replace any non-numeric characters with a blank space. This can be useful for cleaning up data and ensuring that only numeric values are present in a cell. You can also use the “CLEAN” function to remove any non-printable characters from a cell. By combining these functions, you can easily remove non-numeric characters from a cell in Google Sheets.

Google Sheets: Remove Non-Numeric Characters from Cell


You can use the following formula to remove non-numeric characters from cells in Google Sheets:

=REGEXREPLACE(A2,"D+", "")

This particular formula will remove all non-numeric characters from cell A2.

Example: Remove Non-Numeric Characters from Cell in Google Sheets

Suppose we have the following list of phone numbers in Google Sheets:

Now suppose that we would like to remove all non-numeric characters from each phone number so that we’re only left with the numbers.

We can use the following formula to do so:

=REGEXREPLACE(A2,"D+", "")

We’ll type this formula in cell B2, then drag and fill it down to each remaining cell in column B:

Google Sheets replace non-numeric characters

Notice that each non-numeric character has been removed from each phone number.

In particular, the parentheses and the dashes have been removed from each phone number.

Note: You can find the complete documentation for the REGEXREPLACE function .

Cite this article

stats writer (2024). How can I remove non-numeric characters from a cell in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-remove-non-numeric-characters-from-a-cell-in-google-sheets/

stats writer. "How can I remove non-numeric characters from a cell in Google Sheets?." PSYCHOLOGICAL SCALES, 26 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-remove-non-numeric-characters-from-a-cell-in-google-sheets/.

stats writer. "How can I remove non-numeric characters from a cell in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-remove-non-numeric-characters-from-a-cell-in-google-sheets/.

stats writer (2024) 'How can I remove non-numeric characters from a cell in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-remove-non-numeric-characters-from-a-cell-in-google-sheets/.

[1] stats writer, "How can I remove non-numeric characters from a cell in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. How can I remove non-numeric characters from a cell in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top