I'm having trouble conceptualizing how to efficiently sum up the products of two arrays

Hawk11ns

Board Regular
Joined
Jul 21, 2015
Messages
61
Office Version
  1. 365
Platform
  1. Windows
In the first table below, I have a trade log with unique trades. In a separate table, also below, I need to calculate a monthly total 'HEDGE ZONE' cost per period, based on a summation of each individual trades product of 'DAILY $$' and number of days the trade flowed in that given month where:

- Some trades will not flow completely through the period based on 'START' and 'END' dates
- Trades are broken up by 'PRODUCT' and either flow every day (7x), weekdays only (5x), or weekends only (2x)

How can I go about calculating all of these together without creating a separate table?

Book1
ABCDE
1PERIODERCT-HERCT-NERCT-SERCT-W
2Sep 2020
3Oct 2020
4Nov 2020
5Dec 2020
6Jan 2021
7Feb 2021
8Mar 2021
9Apr 2021
10May 2021
11Jun 2021
12Jul 2021
13Aug 2021
Sheet2


Book1
ABCDEFGHIJKL
1STARTENDPRODUCTTRADE ZONEHEDGE ZONEQTYPRCENTEREDMODIFIEDTOTAL (MWH)TOTAL ($$)DAILY ($$)
27/1/20206/30/20227x16ERCOT_HERCT-H1.000$41.256/17/20206/17/202011,680.00$ 481,800$ (660)
38/1/20207/31/20237x16ERCOT_HERCT-H2.000$39.806/17/20206/17/202035,040.00$ 1,394,592$ (1,274)
49/1/20209/15/20205x16ERCOT_HERCT-H4.000$44.556/24/20206/24/2020704.00$ 31,363$ (2,851)
59/1/20209/30/20207x8ERCOT_HERCT-H1.500$44.556/24/20206/24/2020360.00$ 16,038$ (535)
69/1/20209/30/20207x16ERCOT_NERCT-N3.000$40.806/24/20206/24/20201,440.00$ 58,752$ (1,958)
79/1/20209/20/20202x16ERCOT_NERCT-N1.500$40.806/24/20206/24/2020144.00$ 5,875$ (979)
89/1/20209/30/20207x16ERCOT_HERCT-H1.800$36.406/24/20206/24/2020864.00$ 31,450$ (1,048)
99/1/20209/30/20207x8ERCOT_HERCT-H1.000$36.406/24/20206/24/2020240.00$ 8,736$ (291)
1010/1/202010/15/20207x24ERCOT_HERCT-H2.000$44.556/24/20206/24/2020720.00$ 32,076$ (2,138)
1110/15/202010/31/20207x16ERCOT_HERCT-H1.000$44.556/24/20206/24/2020272.00$ 12,118$ (713)
1210/1/20201/31/20217x16ERCOT_NERCT-N1.500$40.806/24/20206/24/20202,952.00$ 120,442$ (979)
1310/1/20201/31/20217x8ERCOT_NERCT-N1.000$40.806/24/20206/24/2020984.00$ 40,147$ (326)
1410/1/202010/31/20205x16ERCOT_HERCT-H0.900$42.056/24/20206/24/2020316.80$ 13,321$ (606)
1510/1/202010/31/20202x16ERCOT_HERCT-H0.600$42.056/24/20206/24/202086.40$ 3,633$ (404)
1610/1/202010/31/20207x8ERCOT_HERCT-H0.700$42.056/24/20206/24/2020173.60$ 7,300$ (235)
1711/1/20205/31/20217x16ERCOT_HERCT-H1.500$44.556/24/20206/24/20205,088.00$ 226,670$ (1,069)
1811/1/20205/31/20217x8ERCOT_HERCT-H1.000$44.556/24/20206/24/20201,696.00$ 75,557$ (356)
1911/1/202011/30/20207x24ERCOT_HERCT-H0.500$42.056/24/20206/24/2020360.00$ 15,138$ (505)
2012/1/202012/31/20207x24ERCOT_HERCT-H0.700$42.056/24/20206/24/2020520.80$ 21,900$ (706)
211/1/20211/31/20217x16ERCOT_HERCT-H0.600$42.056/24/20206/24/2020297.60$ 12,514$ (404)
221/1/20211/31/20217x8ERCOT_HERCT-H0.700$42.056/24/20206/24/2020173.60$ 7,300$ (235)
232/1/20212/28/20215x16ERCOT_NERCT-N1.500$40.806/24/20206/24/2020480.00$ 19,584$ (979)
242/1/20212/28/20217x8ERCOT_NERCT-N1.000$40.806/24/20206/24/2020224.00$ 9,139$ (326)
252/1/20212/28/20212x16ERCOT_NERCT-N1.000$40.806/24/20206/24/2020128.00$ 5,222$ (653)
263/1/20213/31/20217x24ERCOT_NERCT-N1.000$40.806/24/20206/24/2020744.00$ 30,355$ (979)
274/1/20215/31/20217x16ERCOT_NERCT-N1.000$40.806/24/20206/24/2020976.00$ 39,821$ (653)
284/1/20215/31/20217x8ERCOT_NERCT-N0.500$40.806/24/20206/24/2020244.00$ 9,955$ (163)
296/1/20216/30/20217x16ERCOT_HERCT-H1.000$44.556/24/20206/24/2020480.00$ 21,384$ (713)
306/1/20216/30/20217x8ERCOT_HERCT-H0.500$44.556/24/20206/24/2020120.00$ 5,346$ (178)
316/1/20217/31/20217x24ERCOT_NERCT-N0.500$40.806/24/20206/24/2020732.00$ 29,866$ (490)
327/1/20217/31/20217x24ERCOT_HERCT-H0.500$44.556/24/20206/24/2020372.00$ 16,573$ (535)
Sheet1
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,215,753
Messages
6,126,678
Members
449,327
Latest member
John4520

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