Offset, Product & Year

tanvirabid

New Member
Joined
Aug 21, 2019
Messages
8
Hi people,
I was hoping to get help on Offset, Product and Year combined. I have monthly returns. To annualize for 12 months, I can use =((PRODUCT(1+B4:B15)-1)) to get the result. Column B has the results.
I want the result to be based on the Years i.e. 2020, 2019, 2018. Since I have many years of monthly data and a new monthly row is added every month. The dates are in column A.
So I wanted to build a dynamic formula using Offset and Year to get the Product result. The purpose of using offset is that new months will be added below row 3.
I am using this formula:
=PRODUCT(IF(YEAR(OFFSET($A$3,1,0,20,1))=$D5,(1+OFFSET(B$3,1,0,20,1))-1))
For instance, the answer for 2020 should be 0.12228
The idea is that Product result should be based on months that belong to the Year 2020, 2019 and so on. However, the formula is not working even with array.
Please see the image.
Thanks a lot.
 

Attachments

  • Mr. Excel offset, product.png
    Mr. Excel offset, product.png
    32.1 KB · Views: 14

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I think the brackets in the end are misplaced, does this work?
Excel Formula:
=PRODUCT(IF(YEAR(OFFSET($A$3,1,0,20,1))=$D5,(1+OFFSET(B$3,1,0,20,1))))-1
 
Upvote 0
Solution
Because of 12 month of each year I take 12 for height at offset section.
Try this:
Book1
ABCDEF
1
2
3
4Dec-200.1Annual
5Nov-200.1120204.606015
6Oct-200.12201917.3743
7Sep-200.13201853.11205
8Aug-200.142017144.7465
9Jul-200.152016362.9578
10Jun-200.16
11May-200.17
12Apr-200.18
13Mar-200.19
14Feb-200.2
15Jan-200.21
16Dec-190.22
17Nov-190.23
18Oct-190.24
19Sep-190.25
20Aug-190.26
21Jul-190.27
22Jun-190.28
23May-190.29
24Apr-190.3
25Mar-190.31
26Feb-190.32
27Jan-190.33
28Dec-180.34
29Nov-180.35
30Oct-180.36
31Sep-180.37
32Aug-180.38
33Jul-180.39
34Jun-180.4
35May-180.41
36Apr-180.42
37Mar-180.43
38Feb-180.44
39Jan-180.45
40Dec-170.46
41Nov-170.47
42Oct-170.48
43Sep-170.49
44Aug-170.5
45Jul-170.51
46Jun-170.52
47May-170.53
48Apr-170.54
49Mar-170.55
50Feb-170.56
51Jan-170.57
52Dec-160.58
53Nov-160.59
54Oct-160.6
55Sep-160.61
56Aug-160.62
57Jul-160.63
58Jun-160.64
59May-160.65
60Apr-160.66
61Mar-160.67
62Feb-160.68
63Jan-160.69
Sheet2
Cell Formulas
RangeFormula
E5:E9E5=((PRODUCT(1+OFFSET(INDIRECT("B" & MATCH(D5,YEAR($A$1:$A$63),0)),0,0,12,1))-1))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Offset, Product & Year
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Offset, Product & Year
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
My apologies. Thanks, Will comply in future.
 
Upvote 0

Forum statistics

Threads
1,215,724
Messages
6,126,482
Members
449,316
Latest member
sravya

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