Looks like we may have to adjust the SUMIF formula.
=SUMIF(B1:B4,"C0-",A1:A4)+SUMIF(B1:B4,"C0",A1:A4)+SUMIF(B1:B4,"C2-",A1:A4)+SUMIF(B1:B4,"C2",A1:A4)
According to Excel help, here is a breakdown of all the formats so we may need to add anything that starts with a "C":
<TABLE class=collapse><TBODY><TR class=trbgeven><TH>If the Excel format is</TH><TH>The CELL function returns</TH></TR><TR class=trbgodd><TD>General</TD><TD>"G"</TD></TR><TR class=trbgeven><TD>0</TD><TD>"F0"</TD></TR><TR class=trbgodd><TD>#,##0</TD><TD>",0"</TD></TR><TR class=trbgeven><TD>0.00</TD><TD>"F2"</TD></TR><TR class=trbgodd><TD>#,##0.00</TD><TD>",2"</TD></TR><TR class=trbgeven><TD>$#,##0_);($#,##0)</TD><TD>"C0"</TD></TR><TR class=trbgodd><TD>$#,##0_);[Red]($#,##0)</TD><TD>"C0-"</TD></TR><TR class=trbgeven><TD>$#,##0.00_);($#,##0.00)</TD><TD>"C2"</TD></TR><TR class=trbgodd><TD>$#,##0.00_);[Red]($#,##0.00)</TD><TD>"C2-"</TD></TR><TR class=trbgeven><TD>0%</TD><TD>"P0"</TD></TR><TR class=trbgodd><TD>0.00%</TD><TD>"P2"</TD></TR><TR class=trbgeven><TD>0.00E+00</TD><TD>"S2"</TD></TR><TR class=trbgodd><TD># ?/? or # ??/??</TD><TD>"G"</TD></TR><TR class=trbgeven><TD>m/d/yy or m/d/yy h:mm or mm/dd/yy</TD><TD>"D4"</TD></TR><TR class=trbgodd><TD>d-mmm-yy or dd-mmm-yy</TD><TD>"D1"</TD></TR><TR class=trbgeven><TD>d-mmm or dd-mmm</TD><TD>"D2"</TD></TR><TR class=trbgodd><TD>mmm-yy</TD><TD>"D3"</TD></TR><TR class=trbgeven><TD>mm/dd</TD><TD>"D5"</TD></TR><TR class=trbgodd><TD>h:mm AM/PM</TD><TD>"D7"</TD></TR><TR class=trbgeven><TD>h:mm:ss AM/PM</TD><TD>"D6"</TD></TR><TR class=trbgodd><TD>h:mm</TD><TD>"D9"</TD></TR><TR class=trbgeven><TD>h:mm:ss</TD><TD>"D8"</TD></TR></TBODY></TABLE>