Hello Everyone,
I am using sumif function to calculate an amount based on criteria (A2:D2) but whenever there is a blank cell in the Region column the result turns to be "Zero". I am thinking if we can skip the blank cell to get the result.
I tried the "*" and "<>" but ends up with too many arguments or #Value .
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Type[/TD]
[TD]Resource[/TD]
[TD]Region[/TD]
[TD]Quantity[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]AAA[/TD]
[TD][/TD]
[TD]123[/TD]
[TD]US[/TD]
[TD]100[/TD]
[TD]=SUMIFS('EA Report'!$L:$L,'EA Report'!$C:$C,Play!$A2,'EA Report'!$D:$D,Play!$C2,'EA Report'!$J:$J,Play!D2)[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]BBB[/TD]
[TD][/TD]
[TD]456[/TD]
[TD]UK[/TD]
[TD]50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]GGG[/TD]
[TD][/TD]
[TD]456[/TD]
[TD][/TD]
[TD]125[/TD]
[TD]Blank or Zero[/TD]
[/TR]
</tbody>[/TABLE]
I am using sumif function to calculate an amount based on criteria (A2:D2) but whenever there is a blank cell in the Region column the result turns to be "Zero". I am thinking if we can skip the blank cell to get the result.
I tried the "*" and "<>" but ends up with too many arguments or #Value .
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Type[/TD]
[TD]Resource[/TD]
[TD]Region[/TD]
[TD]Quantity[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]AAA[/TD]
[TD][/TD]
[TD]123[/TD]
[TD]US[/TD]
[TD]100[/TD]
[TD]=SUMIFS('EA Report'!$L:$L,'EA Report'!$C:$C,Play!$A2,'EA Report'!$D:$D,Play!$C2,'EA Report'!$J:$J,Play!D2)[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]BBB[/TD]
[TD][/TD]
[TD]456[/TD]
[TD]UK[/TD]
[TD]50[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]GGG[/TD]
[TD][/TD]
[TD]456[/TD]
[TD][/TD]
[TD]125[/TD]
[TD]Blank or Zero[/TD]
[/TR]
</tbody>[/TABLE]