Hi,
I have one column with code letters such as T, S, P, O, the other column values. I want to sum the values when a corresponding matching letter is present.
Works, but
does not.
I even tried:
what I really want to do is to not have to add two similar expressions but do something like this:
Thanks.
I have one column with code letters such as T, S, P, O, the other column values. I want to sum the values when a corresponding matching letter is present.
Code:
=SUMPRODUCT(--(CAT="T"),DV12:DV74)
Works, but
Code:
=SUMPRODUCT(--(CAT="T"),--(CAT="O"),DV12:DV74)
I even tried:
Code:
=SUMPRODUCT(--(ISNUMBER(SEARCH(CAT,"T"))),--(ISNUMBER(SEARCH(CAT,"O"))),DV12:DV74)
what I really want to do is to not have to add two similar expressions but do something like this:
Code:
=SUMPRODUCT(--(CAT={"T","O"}),DV12:DV74)
Thanks.