Extract digits from string – Google spreadsheet November 30, 2023 by Tarik You may replace all non-digit characters using the \D+ regex and an empty string replacement with =REGEXREPLACE(A11,"\D+", "") or with casting it to a number: =VALUE(REGEXREPLACE(A11,"\D+", ""))