SUMIFS ignores errors and just returns 0, how to return N/A ? IFERROR won't work, countif also didn't help.
IF 0 then N/A - not applicable, as I also have some actual zeros, that I need.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]City[/TD]
[TD]Country[/TD]
[TD]Provider[/TD]
[TD]Sum[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]XY[/TD]
[TD]Apples[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]XZ[/TD]
[TD]Apples[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
Table where I look for results:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]City[/TD]
[TD]Country[/TD]
[TD]Provider[/TD]
[TD]SUMIF[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]XY[/TD]
[TD]Apples[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]XY[/TD]
[TD]Oranges[/TD]
[TD]0 (I need N/A)[/TD]
[/TR]
</tbody>[/TABLE]
The thing is, first table has only unique values, It won't have A - XY - Apples twice. So, maybe SUMIF is not the best thing to use.
IF 0 then N/A - not applicable, as I also have some actual zeros, that I need.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]City[/TD]
[TD]Country[/TD]
[TD]Provider[/TD]
[TD]Sum[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]XY[/TD]
[TD]Apples[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]XZ[/TD]
[TD]Apples[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]
Table where I look for results:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]City[/TD]
[TD]Country[/TD]
[TD]Provider[/TD]
[TD]SUMIF[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]XY[/TD]
[TD]Apples[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]XY[/TD]
[TD]Oranges[/TD]
[TD]0 (I need N/A)[/TD]
[/TR]
</tbody>[/TABLE]
The thing is, first table has only unique values, It won't have A - XY - Apples twice. So, maybe SUMIF is not the best thing to use.