Help with sumproduct

deckerp

Active Member
Joined
Feb 12, 2010
Messages
319
Office Version
  1. 365
Hi experts, I would like to sum tax amounts payable by month.

The values to look up, whereas the range is always row 13 to 73.

  • Invoicing date: 04.10.2010
  • Tax amount: 54,98 €
  • Tax paid: paid (in case that not paid yet the cell remains empty)
  • Invoice paid: 12.10.2010

I would like a summary table for tax paid and to be paid:

EG:
Month total tax tax paid
Aug 10 ___ 100,00 € ___ 100,00 €
Sep 10 ___ 200,00 € ___ 88,00 €
Oct 10 ___ 50,00 € ___ 12,00 €
...


My fomula:

=SUMPRODUCT(--(DEBITOREN!$D$13-$D$75>DATE(2010;7;31));--(DEBITOREN!$D$13-$D$75<date(2010;9;1));debitoren!$g$13:$g$75)

returns: #VALUE!

D = invoice dates
G = tax amount
H = tax paid
M = invoice paid

Thanks for your kind help.</date(2010;9;1));debitoren!$g$13:$g$75)
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
just want to add a question:
Is it possible to make the formula better, that looks if the date range is between two dates or within a specific months?

thanks


<date(2010;9;1));debitoren!$g$13:$g$75)

</date(2010;9;1));debitoren!$g$13:$g$75)
 
Upvote 0
I managed to get a result with this formula:

=SUMPRODUCT(--((DEBITOREN!$J$13:$J$73)>DATE(2010;8;31));--((DEBITOREN!$J$13:$J$73)<DATE(2010;10;1));DEBITOREN!$G$13:$G$73)


<date(2010;10;1));debitoren!$g$13:$g$73)
<date(2010;10;1));debitoren!$g$13:$g$73)
but it produces an error. In my example it adds a tax value from the invoice date 26 august 2010</date(2010;10;1));debitoren!$g$13:$g$73)
</date(2010;10;1));debitoren!$g$13:$g$73)
 
Upvote 0
=SUMPRODUCT(--((DEBITOREN!$J$13:$J$73)>DATE(2010;8;31));--((DEBITOREN!$J$13:$J$73)<DATE(2010;10;1));DEBITOREN!$G$13:$G$73)

Did not previously accept post of formula.

I managed to get a result with this formula:

=SUMPRODUCT(--((DEBITOREN!$J$13:$J$73)>DATE(2010;8;31));--((DEBITOREN!$J$13:$J$73)<date(2010;10;1));debitoren!$g$13:$g$73)


<date(2010;10;1));debitoren!$g$13:$g$73)
<date(2010;10;1));debitoren!$g$13:$g$73)
but it produces an error. In my example it adds a tax value from the invoice date 26 august 2010</date(2010;10;1));debitoren!$g$13:$g$73)

</date(2010;10;1));debitoren!$g$13:$g$73)
</date(2010;10;1));debitoren!$g$13:$g$73)
 
Upvote 0
Solutions could include
a) a Pivot Table or
b) Sumif or
c) SumProduct

Edit for your columns, rows, and sheet names.
Excel Workbook
DEFGH
1DateTax AmountTax Paid
2Aug 05, 2010100100
3Aug 25, 201020088
4Sep 14, 20105012
5Oct 04, 201010050
6Oct 24, 2010150
7Nov 13, 201020050
8
9
10Data
11YearsDateSum of Tax AmountSum of Tax PaidSum of Tax Payable
122010Aug300.00188.00112.00
13Sep50.0012.0038.00
14Oct250.0050.00200.00
15Nov200.0050.00150.00
16Grand Total800.00300.00500.00
17
18
19Aug 01, 2010300.00188.00112.00
20Sep 01, 201050.0012.0038.00
21
3c
Excel 2003
Cell Formulas
RangeFormula
H19=F19-G19
F19=SUMIF(D2:D7,">"&D19,E2:E7)-SUMIF(D2:D7,">="&D20,E2:E7)
F20=SUMPRODUCT(--(D2:D7-DAY(D2:D7)+1=D20),(E2:E7))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top