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} 

sample cell

=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.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo