Help! Multiple Criteria

Ryske

New Member
Joined
Mar 22, 2017
Messages
6
Hello everyone, hope all is well. I will be making a presentation – automated gathering of info. I just can’t figure out how to make this happen.
The first spreadsheet would be the output, the date on the top are the ship dates. I have customers that are ordering 2 items irregularly, need to track their orders.

1-Jan-172-Jan-173-Jan-174-Jan-175-Jan-176-Jan-177-Jan-17
CustomerItem 1Item 2Item 1Item 2Item 1Item 2Item 1Item 2Item 1Item 2Item 1Item 2Item 1Item 2
Company A10------------50
Company B-----20--------
Company C--------2020----

<colgroup><col><col span="14"></colgroup><tbody>
</tbody>

Second spreadsheet is the raw data:


CustomerItemShip date Quantity
Company AItem 11-Jan-17 10
Company BItem 23-Jan-17 20
Company CItem 15-Jan-17 20
Company CItem 25-Jan-17 20
Company AItem 27-Jan-17 50

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


Is there a simple formula for this? Any help would be greatly appreciated. Thanks in advance!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
A SUMIFS formula will do. Assume "Customer" is in cell A2 for the top table. Assume the bottom table is on sheet4. Do in this order...

Cell B3 formula: =SUMIFS(Sheet4!$D$1:$D$6,Sheet4!$A$1:$A$6,Sheet3!$A3,Sheet4!$C$1:$C$6,Sheet3!B$1,Sheet4!$B$1:$B$6,Sheet3!B$2)
Cell C3 formula: =SUMIFS(Sheet4!$D$1:$D$6,Sheet4!$A$1:$A$6,Sheet3!$A3,Sheet4!$C$1:$C$6,Sheet3!B$1,Sheet4!$B$1:$B$6,Sheet3!C$2)

Copy those two formulas down to the next rows

Copy those two columns of formulas and paste into Cells D3, F3, H3, J3, L3, and N3

TA DA
 
Upvote 0
Hi Jeffrey, thanks for the response. I understand now how the sumifs works, however, the dates top of the first image are merged cells for example "1-Jan-2017 is located in B1:C1". My apologies if I missed this on my first post. I cannot attach the actual spreadsheets I am working on, my access on this is disabled. Thank you!
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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