Summing up the values from different sheet

tta013

New Member
Hi all,

Hope you are all well.

I have two sheets on my workbook and I need to sum up the values from Sheet one and display it in sheet two. And I am struggling....

On Sheet on, I have the following columns:

Product Date_Bought Qty
ABC 01/01/2011 3
ABC 03/01/2011 3
DEF 01/01/2011 3
ABC 08/01/2011 3
DEF 10/01/2011 3
---

On the Sheet two, I have the following columns and a row(Product)

Date
01/01/2011 07/01/2011 14/01/2011
ABC 6 3 0
DEF 3 3 0
----------------------------------------------------

As above what I would like to achieve is Total number of Qty for each product between the date rage (From 01/01/2011 - 06/01/2011, 07/01/2011 - 13/01/2011, etc...)

I am keen to find out how I can go about to achieve this and what would be the most efficient way to do this please?

Many thanks

---

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Formula in B2 copy down and accross:
=SUMPRODUCT(--(Sheet1!\$A\$2:\$A\$6=\$A2),--(Sheet1!\$B\$2:\$B\$6>=B\$1),--(Sheet1!\$B\$2:\$B\$6<?XML:NAMESPACE PREFIX = C\$1)*(Sheet1!\$C\$2 /><C\$1)*(Sheet1!\$C\$2:\$C\$6))< p></C\$1)*(Sheet1!\$C\$2:\$C\$6))<>

Brilliant!
thank you!

Replies
27
Views
437
Replies
9
Views
121
Replies
5
Views
209
Replies
1
Views
227
Replies
2
Views
232

1,203,356
Messages
6,054,922
Members
444,759
Latest member
TeckTeck

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.

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

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