在 XIRR 公式的范围(系列)中包含一个不相邻的单元格 [英] Including a non-adjacent cell in a Range (series) in the XIRR formula

查看:15
本文介绍了在 XIRR 公式的范围(系列)中包含一个不相邻的单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆