SUMPRODUCT data within a certain date range

xinyan1129

New Member
Joined
Feb 22, 2017
Messages
11
ABCDEFGIJ
152017Data
2MonthCustomer nameChannelGross salesReturn
3Current MonthMay-17ABC BOOKSTOREBOOKSTORE8,035 (788)
4ChannelGross salesReturn May-17VENICE RUNNERSCHOOL RUNNER36,103 (37,861)
5BOOKSTORE50,143 (788)May-17PGSM BOOKSTOREBOOKSTORE42,108 0
6SCHOOL RUNNER51,446 (37,861)May-17VENTI RUNNERSCHOOL RUNNER15,343 0
7Jun-17VC STATIONERY & BOOKBOOKSTORE2,610 0
8Jun-17FABER LINKSCHOOL RUNNER76 0
9Year to date (May'17 - Jun'17)
10ChannelGross salesReturn
11BOOKSTORE
12SCHOOL RUNNER

<tbody>
</tbody>

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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,214,813
Messages
6,121,706
Members
449,049
Latest member
THMarana

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