Hi, I am new to this forum and currently having some problems with SUMIFS. I am trying to get the formula to check if criteria 1 and 2 are met and then if they are add the sum range value to get a total. For criteria 1 I found that the formula in G3 only notices 124 if the cell contains a letter and so the value in G3 is currently 2 but the total should be 19. Does anyone know where I might be going wrong?[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Criteria 1 range[/TD]
[TD]Criteria 2 range[/TD]
[TD]Sum range[/TD]
[TD][/TD]
[TD][/TD]
[TD]Criteria 1[/TD]
[TD]124[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]P124[/TD]
[TD]Company A[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]Criteria 2[/TD]
[TD]Company A[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1246903[/TD]
[TD]Company A[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Total[/TD]
[TD]=SUMIFS(C2:C5,A2:A5,"*"&G1&"*",B2:B5,G2)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]521246[/TD]
[TD]Company A[/TD]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]124[/TD]
[TD]Company A[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Criteria 1 range[/TD]
[TD]Criteria 2 range[/TD]
[TD]Sum range[/TD]
[TD][/TD]
[TD][/TD]
[TD]Criteria 1[/TD]
[TD]124[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]P124[/TD]
[TD]Company A[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]Criteria 2[/TD]
[TD]Company A[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1246903[/TD]
[TD]Company A[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Total[/TD]
[TD]=SUMIFS(C2:C5,A2:A5,"*"&G1&"*",B2:B5,G2)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]521246[/TD]
[TD]Company A[/TD]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]124[/TD]
[TD]Company A[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]