I am attempting to use the SUMIFS formula in a spreadsheet, particularly on in-state and out of state totals. The codes for out of state will have a 3 digit number followed by a 2 letter state code followed by another two letter client code. So for example, you may see something like this:
100COAA
120COAA
100MOAA
120MOAA
There are numerous codes such as this, but the only thing I care about is the 2 letter state code. I am needing to sum all the out of state codes and in a separate total I need to sum all the in-state codes.
All the out of states are: CO, KS, MO, NM; and then the in-state doesn't use a two letter code, meaning I will need to use the not equal to '<>' for that formula.
The Sum Range is J:J
The criteria range is B:B
I attempted to use a formula such as this:
=SUMIFS(J:J,B:B,="*CO*",B:B,="*MO*"....) but evidently it doesn't like my wildcards.
then the other formula would be something like this:
=SUMIFS(J:J,B:B,<>"*CO*",B:B,<>"*MO*"....)
Any thoughts??
100COAA
120COAA
100MOAA
120MOAA
There are numerous codes such as this, but the only thing I care about is the 2 letter state code. I am needing to sum all the out of state codes and in a separate total I need to sum all the in-state codes.
All the out of states are: CO, KS, MO, NM; and then the in-state doesn't use a two letter code, meaning I will need to use the not equal to '<>' for that formula.
The Sum Range is J:J
The criteria range is B:B
I attempted to use a formula such as this:
=SUMIFS(J:J,B:B,="*CO*",B:B,="*MO*"....) but evidently it doesn't like my wildcards.
then the other formula would be something like this:
=SUMIFS(J:J,B:B,<>"*CO*",B:B,<>"*MO*"....)
Any thoughts??