Rolling 12 month using =PRODUCT function

NinaE_11

Board Regular
Joined
Aug 18, 2020
Messages
67
Office Version
  1. 2016
Platform
  1. Windows
Hello,
I'm looking use the product function in lieu of the below =SUM function, using the XLOOKUPs. Here is the function that works when summing the values:

=SUM(XLOOKUP(K19,$C$15:$C$214,$D$15:$D$214) :XLOOKUP(K20,$C$15:$C$214,D15:D214))

However the data I am working with are portfolio performance returns, and I typically use the below function to link the returns for a 12 month period: (using the Array brackets):

{=PRODUCT(1+D162:D173)-1}

If I simply try to replace 'PRODUCT' in lieu of 'SUM' in first formula (with normal 1+ and array brackets, the formula chokes.

I have a list of monthly returns from 2006, and would like the user to enter an month-end date in a cell, using +EOMONTH AND =XOOKUP formulas to find 12 months prior, link those 12 returns to month-end date.

Any advice would be much appreciated - thank you!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Try
Excel Formula:
=PRODUCT(IF(($C$15:$C$214>=K19)*($C$15:$C$214<=EOMONTH(K19,12)),$D$15:$D$214,""))
 
Upvote 0
Thank you for your efforts - unfortunately, I couldn't get this to work.
Try inputting it with Ctrl-Shift-Enter instead of Enter? Should not be a problem if you have XLOOKUP access though, which is definitely not 2016.
To clarify, column C contains month end dates, K19 contains your starting month end date, and column D contains the values you want to multiply?
 
Upvote 0
Try inputting it with Ctrl-Shift-Enter instead of Enter? Should not be a problem if you have XLOOKUP access though, which is definitely not 2016.
To clarify, column C contains month end dates, K19 contains your starting month end date, and column D contains the values you want to multiply?
I do have XLOOKUP Access. I tried entering the array brackets with the Ctrl+Shift+Enter method. Result = 0.00%

You have it all correct: Column C = Month end Dates; Column D = monthly returns in % and K19 holds the starting month end period. For example :
Column D
0.98%
3.59%
1.67%
1.45%
1.75%
5.15%
-0.97%
-3.16%
4.48%
5.72%
6.33%
-7.31%

{=PRODUCT(1+D1:D12)-1} = 20.52%
 
Upvote 0
I amended the "" in the formula to 0, perhaps it will work for you?
Book21
CDEFGHIJK
1492.67%
1531-Jan-20002.55%92.67%
1629-Feb-20006.14%
1731-Mar-20002.31%
1830-Apr-20005.68%
1931-May-20002.97%31-05-2000
2030-Jun-20003.18%
2131-Jul-20006.01%
2231-Aug-20008.55%
2330-Sep-20007.64%
2431-Oct-20002.41%
2530-Nov-20003.26%
2631-Dec-20002.07%
2731-Jan-20017.07%
2828-Feb-20016.09%
2931-Mar-20018.83%
3030-Apr-20014.01%
3131-May-20015.49%
3230-Jun-20015.05%
3331-Jul-20018.22%
3431-Aug-20016.17%
3530-Sep-20011.21%
3631-Oct-20010.27%
3730-Nov-20013.96%
3831-Dec-20015.11%
3931-Jan-20023.83%
4028-Feb-20028.65%
4131-Mar-20023.20%
4230-Apr-20028.55%
4331-May-20025.24%
4430-Jun-20029.81%
4531-Jul-20022.56%
4631-Aug-20026.11%
4730-Sep-20026.51%
4831-Oct-20028.40%
4930-Nov-20028.53%
5031-Dec-20020.90%
5131-Jan-20039.50%
5228-Feb-20031.08%
5331-Mar-20036.52%
5430-Apr-20039.77%
5531-May-20031.65%
5630-Jun-20037.70%
5731-Jul-20033.45%
5831-Aug-20032.65%
5930-Sep-20031.46%
6031-Oct-20038.95%
6130-Nov-20036.53%
6231-Dec-20036.26%
6331-Jan-20045.88%
6429-Feb-20048.36%
6531-Mar-20045.08%
6630-Apr-20043.29%
6731-May-20048.71%
6830-Jun-20043.37%
6931-Jul-20040.94%
7031-Aug-20046.94%
7130-Sep-20043.03%
7231-Oct-20045.16%
7330-Nov-20049.94%
7431-Dec-20042.90%
7531-Jan-20057.13%
7628-Feb-20058.54%
7731-Mar-20059.11%
7830-Apr-20057.93%
7931-May-20051.53%
8030-Jun-20052.35%
8131-Jul-20058.22%
8231-Aug-20051.59%
8330-Sep-20053.24%
8431-Oct-20054.32%
8530-Nov-20059.46%
8631-Dec-20055.69%
8731-Jan-20063.16%
8828-Feb-20063.62%
8931-Mar-20068.20%
9030-Apr-20066.64%
9131-May-20066.50%
9230-Jun-20069.43%
9331-Jul-20063.58%
9431-Aug-20069.87%
9530-Sep-20062.42%
9631-Oct-20062.71%
9730-Nov-20069.11%
9831-Dec-20066.90%
9931-Jan-20077.24%
10028-Feb-20072.26%
10131-Mar-20079.27%
10230-Apr-20071.12%
10331-May-20074.74%
10430-Jun-20070.72%
10531-Jul-20070.33%
10631-Aug-20076.61%
10730-Sep-20070.41%
10831-Oct-20076.18%
10930-Nov-20075.56%
11031-Dec-20072.33%
11131-Jan-20085.14%
11229-Feb-20081.39%
11331-Mar-20084.46%
11430-Apr-20083.46%
11531-May-20087.60%
11630-Jun-20081.15%
11731-Jul-20080.10%
11831-Aug-20083.00%
11930-Sep-20089.48%
12031-Oct-20084.04%
12130-Nov-20089.16%
12231-Dec-20082.65%
12331-Jan-20091.62%
12428-Feb-20096.40%
12531-Mar-20093.60%
12630-Apr-20099.36%
12731-May-20091.91%
12830-Jun-20091.82%
12931-Jul-20094.33%
13031-Aug-20090.58%
13130-Sep-20098.03%
13231-Oct-20098.00%
13330-Nov-20096.14%
13431-Dec-20094.91%
13531-Jan-20101.24%
13628-Feb-20106.32%
13731-Mar-20100.08%
13830-Apr-20102.01%
13931-May-20102.15%
14030-Jun-20104.69%
14131-Jul-20109.00%
14231-Aug-20104.04%
14330-Sep-20105.48%
14431-Oct-20107.23%
14530-Nov-20100.78%
14631-Dec-20109.62%
14731-Jan-20114.59%
14828-Feb-20118.14%
14931-Mar-20115.71%
15030-Apr-20117.80%
15131-May-20118.66%
15230-Jun-20116.64%
15331-Jul-20118.96%
15431-Aug-20111.54%
15530-Sep-20117.02%
15631-Oct-20111.91%
15730-Nov-20110.12%
15831-Dec-20117.25%
15931-Jan-20127.94%
16029-Feb-20129.07%
16131-Mar-20128.84%
16230-Apr-20122.53%
16331-May-20126.69%
16430-Jun-20126.55%
16531-Jul-20129.33%
16631-Aug-20129.57%
16730-Sep-20127.37%
16831-Oct-20129.25%
16930-Nov-20127.21%
17031-Dec-20121.38%
17131-Jan-20137.11%
17228-Feb-20132.64%
17331-Mar-20134.92%
17430-Apr-20139.91%
17531-May-20138.16%
17630-Jun-20132.32%
17731-Jul-20137.34%
17831-Aug-20139.73%
17930-Sep-20133.15%
18031-Oct-20132.49%
18130-Nov-20137.00%
18231-Dec-20135.52%
18331-Jan-20146.31%
18428-Feb-20143.19%
18531-Mar-20145.94%
18630-Apr-20142.62%
18731-May-20140.76%
18830-Jun-20144.19%
18931-Jul-20145.64%
19031-Aug-20145.02%
19130-Sep-20144.88%
19231-Oct-20145.49%
19330-Nov-20142.47%
19431-Dec-20141.14%
19531-Jan-20159.35%
19628-Feb-20150.33%
19731-Mar-20156.15%
19830-Apr-20155.18%
19931-May-20155.25%
20030-Jun-20151.74%
20131-Jul-20159.01%
20231-Aug-20158.80%
20330-Sep-20155.20%
20431-Oct-20155.75%
20530-Nov-20151.46%
20631-Dec-20154.55%
20731-Jan-20160.05%
20829-Feb-20161.02%
20931-Mar-20168.46%
21030-Apr-20164.32%
21131-May-20163.04%
21230-Jun-20166.90%
21331-Jul-20167.26%
21431-Aug-20162.11%
Sheet1
Cell Formulas
RangeFormula
J14J14=PRODUCT(IF(($C$15:$C$214>=K19)*($C$15:$C$214<=EOMONTH(K19,12)),$D$15:$D$214,0)+1)-1
J15J15=PRODUCT(1+D19:D31)-1
 
Upvote 0
Solution

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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