Count and convert text

B

Boenerge

Is it possible to create a function/formula which will count text in a row
and then convert them to a value and allow it to be multiplied by a value?
e.g. E DO L OD E L (count the text E, L, OD ignoring DO) the value of these
being 7.5 then multiplied by the amount of times they appear e.g. 5 = 37.5.
 
J

JE McGimpsey

One way:

=(LEN(A1)-LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"E",""),
"L",""),"OD"," ")))*7.5

Note the space between quotes after "OD" (to shorten the string by only
1 character per instance).
 
Top