Sumifs, Lists, and Sumproduct to create a matrix?

rgsanchez

New Member
Joined
Dec 1, 2016
Messages
11
Hello,
I am trying to create a matrix that includes specific data from different Excel workbooks. However, since I don't know how to use macros, I'm going to transfer data from each workbook to the appropriate day column in my matrix, one by one.

I will use trains carrying food products as my example. There are "fruit trains" carrying fruits, and there are other trains (like rice or beans). I only want to include data about fruit trains in my matrix. By train number, and the day of week the train operated, I want to sum the total minutes of delay that each train experienced as it traveled to it's final destination. I cannot change the format/layout of my final matrix.

I think I need to use combinations of sumifs and sumproduct, but I haven't found something that works for my specific situation.


MATRIX: Fruit Train Delays

8/1/2019

<tbody>
</tbody>
8/2/2019

<tbody>
</tbody>
8/3/2019

<tbody>
</tbody>
Train #
M-F

<tbody>
</tbody>
M-F

<tbody>
</tbody>
SatSun
M-F
561

<tbody>
</tbody>
7formula?
SatSun
561

<tbody>
</tbody>
0formula?
M-F
562

<tbody>
</tbody>
5formula?
SatSun
562

<tbody>
</tbody>
0

M-F
564

<tbody>
</tbody>
0

SatSun15640

M-F
763

<tbody>
</tbody>
4

SatSun
763

<tbody>
</tbody>
0

<tbody>
</tbody>


8/1/19 Report

<tbody>
</tbody>

<tbody>
</tbody>
Train #ProductMinsDelayed
561Grapes5
561Kiwis2
562Apples5
562Rice1
564Beans1
1564Apples0
763Kiwis4
763Rice3

<tbody>
</tbody>


Fruits List:
Grape
Kiwi
Apple
Orange
Grape


<tbody>
</tbody>

Any help would be much appreciated! Thank you.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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