SUMPRODUCT data within a certain date range

xinyan1129

New Member
Joined
Feb 22, 2017
Messages
11
[TABLE="width: 1016"]
<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]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]5[/TD]
[TD]2017[/TD]
[TD][/TD]
[TD]Data[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Month[/TD]
[TD]Customer name[/TD]
[TD]Channel[/TD]
[TD]Gross sales[/TD]
[TD]Return [/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Current Month[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]May-17[/TD]
[TD]ABC BOOKSTORE[/TD]
[TD]BOOKSTORE[/TD]
[TD]8,035 [/TD]
[TD](788)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Channel[/TD]
[TD]Gross sales[/TD]
[TD]Return [/TD]
[TD][/TD]
[TD]May-17[/TD]
[TD]VENICE RUNNER[/TD]
[TD]SCHOOL RUNNER[/TD]
[TD]36,103 [/TD]
[TD](37,861)[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]BOOKSTORE[/TD]
[TD]50,143 [/TD]
[TD](788)[/TD]
[TD][/TD]
[TD]May-17[/TD]
[TD]PGSM BOOKSTORE[/TD]
[TD]BOOKSTORE[/TD]
[TD]42,108 [/TD]
[TD]0 [/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]SCHOOL RUNNER[/TD]
[TD]51,446 [/TD]
[TD](37,861)[/TD]
[TD][/TD]
[TD]May-17[/TD]
[TD]VENTI RUNNER[/TD]
[TD]SCHOOL RUNNER[/TD]
[TD]15,343 [/TD]
[TD]0 [/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jun-17[/TD]
[TD]VC STATIONERY & BOOK[/TD]
[TD]BOOKSTORE[/TD]
[TD]2,610 [/TD]
[TD]0 [/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Jun-17[/TD]
[TD]FABER LINK[/TD]
[TD]SCHOOL RUNNER[/TD]
[TD]76 [/TD]
[TD]0 [/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD="colspan: 2"]Year to date (May'17 - Jun'17)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Channel[/TD]
[TD]Gross sales[/TD]
[TD]Return [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]BOOKSTORE[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]SCHOOL RUNNER[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

If I wish to search gross sales and return amount for current month (May’17), so formula in Cell B5
=SUMPRODUCT((MONTH($F$3:$F$8)=$B$1)*(YEAR($F$3:$F$8)=$C$1)*($G$3:$G$8="BOOKSTORE")*($I$3:$I$8))

What if I wish to search gross sales and return amount for Year to date (May’17 – Jun’17), which formula I should insert in cell B11?

Please help and thanks in advance.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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