sumifs() across tables

sstiebinger

Board Regular
Joined
Nov 7, 2013
Messages
135
I have a couple of tables and I need to sum if based on multiple criteria within these tables.

Table 1 - Sales History:
Item IDOrder DateUnits Sold
409164/4/20181
414445/2/20183

<tbody>
</tbody>


Table 2 - Promos:
Item IDPromo Start DatePromo End DateSales during period
409164/1/20184/30/2018???
222734/1/20184/30/2018???

<tbody>
</tbody>


For Sales During Period I would like the sum of all units sold where:
Table2[Item ID] = Table1[Item ID]
AND
Table1[Order Date] >= Table2[Promo Start Date]
AND
Table1[Order Date] <= Table2[Promo End Date]

I can't figure out the sumifs statement...

Thanks in advance for the help!
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
=SUMIFS(Table1[Units Sold],Table1[Item ID],[@[Item ID]],Table1[Order Date],">="&[@[Promo Start Date]],Table1[Order Date],"<="&[@[Promo End Date]])
 
Upvote 0
Thanks!

I was missing the quotes around the operators and the &... didn't realize I needed to send that as a string....

Always learning.
 
Upvote 0

Forum statistics

Threads
1,214,793
Messages
6,121,617
Members
449,039
Latest member
Mbone Mathonsi

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