简体   繁体   English

excel公式将季度收益按年计算

[英]excel formula to annualize quarterly returns

I have quarterly return data and I want an excel formula that will create calendar year returns from the quarterly data. 我有季度收益数据,并且我想要一个Excel公式,该公式将根据季度数据创建日历年收益。 So Column A has dates (3/31/2015, 6/30/2015, etc) and Column B has the returns (5.12, -1.26, etc). 因此,A列具有日期(2015年3月31日,2015年6月30日等),B列具有日期的回报(5.12,-1.26等)。 I'm looking for a formula that would find all quarterly returns in a given year and annualize those returns. 我正在寻找一个公式,可以找到给定年份的所有季度回报,并将这些回报年化。

I'm currently using this formula: =((PRODUCT(O36:O39/100+1)-1)*100), but I would rather use a formula that can find the given year, so I don't have to adjust the ranges as new data is added. 我目前正在使用此公式:=(((PRODUCT(O36:O39 / 100 + 1)-1)* 100),但我宁愿使用可以找到给定年份的公式,因此不必进行调整添加新数据时的范围。

Any help is appreciated. 任何帮助表示赞赏。

Try matching the year with a formula similar to this: 尝试用类似于以下公式的年份匹配年份:

=(PRODUCT(IF((YEAR(A:A)=2016),(1+B:B/100),1))-1)*100

where you can replace 2016 by a link to a cell with the desired year. 您可以在其中用指向所需年份的单元格的链接替换2016。

This is an array formula, so you'll need to enter it using Ctrl + Shift + Enter . 这是一个数组公式,因此您需要使用Ctrl + Shift + Enter输入

The formula gives you 1 if the date doesn't match your current year, otherwise it uses the returns in column B. 如果日期与当前年份不匹配,该公式将为您提供1,否则它将使用B列中的返回值。

As a side note, it's generally better to work with percents as their actual values (but number formatted as percentages) rather than having to multiply and divide by 100 whenever you want to work with them. 附带说明一下,通常最好使用百分比作为其实际值(但数字格式为百分比),而不是每次使用它们时都必须乘以100除以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM