Operator "belongs to" in excel -
i have list of values have named "list1", , want sum values in column b follows:
the value in cell b5 added if , if value in cell a5 belongs list1.
thanks in advance.
ps: i've tried using sumif, haven't managed use function match criterion there.
=sumif(b:b,a:a,match(a:a,list1))
does not work.
=sum(if(iserror(match(a:a,list1,0)),0,1)*b:b)
this array formula, , needs confirmed ctrl+shift+enter instead of enter. if done correctly, see curly braces ({
, }
) appear around formula.
Comments
Post a Comment