I have a dataset that tracks invoices that has the following information (simplified example):
Table Name: INVOICEDATA
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Vendor[/TD]
[TD]Contract #[/TD]
[TD]TO#[/TD]
[TD]Invoice # [/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]ABC
[/TD]
[TD]1135[/TD]
[TD]1[/TD]
[TD]100[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]1[/TD]
[TD]101[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]7[/TD]
[TD]100[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]5[/TD]
[TD]105[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]1222[/TD]
[TD]1[/TD]
[TD]105[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]750[/TD]
[TD][/TD]
[TD]10[/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]780[/TD]
[TD][/TD]
[TD]15[/TD]
[TD]80[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]780[/TD]
[TD][/TD]
[TD]20[/TD]
[TD]760[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]780[/TD]
[TD][/TD]
[TD]25[/TD]
[TD]555[/TD]
[/TR]
</tbody>[/TABLE]
I have another report that has:
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Row[/TD]
[TD]Vendor[/TD]
[TD]Contract #[/TD]
[TD]TO#[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]ABC[/TD]
[TD]1135[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]ABC[/TD]
[TD]1222[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]ABC[/TD]
[TD]750[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]ABC[/TD]
[TD]780[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
For each of the total line I would have:
=sumif(INVOICEDATA[Amount],INVOICEDATA[Vendor],A1,INVOICEDATA[Contract #], B1, INVOICEDATA[TO#], C1)
Row 1-4 work fine but 5 and 6 don't.