NumberCrunchingMonky
Technical User
I'm trying to configure SUMPRODUCT to use a part of a text string as my criteria.
For example:
A B C
1 Code State Total
2 123_ABC_456 NY 50
3 123_GHI-456 NY 50
4 234_ABC_567 NY 50
5 234_GHI_567 NY 50
I want to sum all the codes that contain "ABC". Unfortunately, SUMPRODUCT won't allow it conventionally, in the form: =SUMPRODUCT((Code="ABC")*(Total))
I tried to nest MID and pull out that part of the string, but I couldn't get it to work. I then tried SUMIF and couldn't get that work either.
Any thoughts?
Thanks.
NCM
For example:
A B C
1 Code State Total
2 123_ABC_456 NY 50
3 123_GHI-456 NY 50
4 234_ABC_567 NY 50
5 234_GHI_567 NY 50
I want to sum all the codes that contain "ABC". Unfortunately, SUMPRODUCT won't allow it conventionally, in the form: =SUMPRODUCT((Code="ABC")*(Total))
I tried to nest MID and pull out that part of the string, but I couldn't get it to work. I then tried SUMIF and couldn't get that work either.
Any thoughts?
Thanks.
NCM