在XIRR公式中的范围(系列)中包括一个非相邻单元格 [英] Including a non-adjacent cell in a Range (series) in the XIRR formula
问题描述
我正在使用XIRR公式,如下所示:
I am using the XIRR formula as follows:
=XIRR(E$11:E17,B$11:B17)
,但需要在值和日期范围内添加一个额外的非相邻单元格.
but need to add an additional non-adjacent cell to the Range of values and dates.
我的第一次尝试:
=XIRR((E$11:E17,H17),(B$11:B17,B17))
产生 #VALUE
我尝试使用CHOOSE函数执行此操作,如下所示:
I have attempted to do it using the CHOOSE function as follows:
=XIRR(CHOOSE({1,2},E$11:E17,H17),CHOOSE({1,2},B$11:B17,B17))
但这无法产生正确的结果.
But this is not working to produce the correct results.
我无法弄清楚如何在范围的末尾添加一个单元格.下面的方法确实可以给出正确的结果,但对我来说不起作用,因为我需要使用范围和单个单元格,而不是所有单个单元格
I cannot figure out how to add one cell onto the end of the range. The following did work to give correct results but isn't going to work for me, as I need to use a range and individual cell, not all individual cells
=XIRR(CHOOSE({1,2,3},E11,E12,H13),CHOOSE({1,2,3},B11,B12,B13))
感谢您的帮助.
推荐答案
您可以尝试类似的操作:
You could try something similar to this:
= XIRR(IF(1-FREQUENCY(9 ^ 9,B11:B17),E11:E17,H17),IF(1-FREQUENCY(9 ^ 9,B11:B17),B11:B17,B17))
这篇关于在XIRR公式中的范围(系列)中包括一个非相邻单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!