Reputation: 1979
I have the following excel cell
=5+10+25
I want to count how many values I am adding, so for the about the result should be 3
I tried the answer here but it would only give me back 1 because it is applying the formula on 30
instead of =5+10+25
.
Upvotes: 0
Views: 48
Reputation: 5471
Try something like this
=(LEN(FORMULATEXT(A1))-LEN(SUBSTITUTE(FORMULATEXT(A1),"+","")))+1
Upvotes: 3