Forum Discussion
DonYTechGuy
Feb 27, 2020Copper Contributor
Adding 2 numbers in a column with a comma in between
This formula works to count more than one number in a cell separated by a comma in Google Sheets. =COUNTA(SPLIT(JOIN(",",L10:L142),",")) 1,2 3,4,5 See the Screenshot below. Is there an eq...
- Feb 27, 2020
Hello DonYTechGuy,
As a variant:
=SUM(SUMPRODUCT(LEN(Cell_Range)),-SUMPRODUCT(LEN(SUBSTITUTE(Cell_Range,",",""))),COUNTA(Cell_Range))
Savia
Feb 27, 2020Iron Contributor
Only if you install a small user-defined function like so: Function Eval(Ref As String) Application.Volatile Eval = Evaluate(Ref) End Function Then you can do: =eval(SUBSTITUTE(cell reference,",","+"))
Savia
Feb 27, 2020Iron Contributor
I realised I misread your problem - ignore this.