excel - #value error in sum array with substitutes -
my formula have works fine long cells contain value. issue i'm running #value! error if have letter in cell. i'm trying accomplish sum of cells. image posted sample cell.
{=sum(value(substitute(substitute(a3:b21,"c",""),"s","")))+0}
=sum(--(0&trim(substitute(substitute($a$3:$b$21),"c",""),"s","")))
-- way of taking value.
another possibility wrap formula in iferror function return given value when error occurs. see below formula:
=iferror(sum(value(substitute(substitute(a3:b21,"c",""),"s","")))+0,"custom message")
remember use cse either formula.