Hi guys, I've used the formula '=SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9,0},)))' in Excel to count the amount of numbers occurring in a cell, but it doesn't seem to be working in Google Sheets. Is there a workaround that can be used? Thanks
=ArrayFormula(SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{1,2,3,4,5,6,7,8,9,0},))))
=LEN(REGEXREPLACE(A1,"\D",""))
=LEN(REGEXREPLACE(""&A1,"\D",""))
This is great, working perfectly thank you very muchExcel Formula:=LEN(REGEXREPLACE(""&A1,"\D",""))