简体   繁体   English

pivot 表中的 XIRR function

[英]XIRR function in pivot table

I'm trying to add XIRR formula to pivot table but either I'm doing something wrong, either it's impossible.我正在尝试将 XIRR 公式添加到 pivot 表中,但要么我做错了什么,要么这是不可能的。

Here on the picture is sample data, formula I've put and XIRR calculated in single cell with the same data (so It works outside pivot table)图片上是示例数据,我输入的公式和 XIRR 在具有相同数据的单个单元格中计算(因此它在 pivot 表之外工作)

在此处输入图像描述

I don't think so as the calculated field cannot work with arrays and will sum across the underlying data.我不这么认为,因为计算字段不能与 arrays 一起使用,并且会汇总基础数据。

在此处输入图像描述

Look at how SUMPRODUCT misbehaves due to summing underlying data:看看 SUMPRODUCT 因对基础数据求和而导致的行为不端:

数据透视计算字段中的 SUMPRODUCT click image to enlarge点击图片放大

Pivottable calculated fields will operate on the underlying data and the XIRR function needs at least one negative and one positive value, which it wouldn't have with the summed underlying data.数据透视计算字段将对基础数据进行操作,而XIRR function 至少需要一个负值和一个正值,而对基础数据求和则不会。

As per Microsoft XIRR guidance :根据Microsoft XIRR 指南

XIRR expects at least one positive cash flow and one negative cash flow; XIRR 预计至少有一笔正现金流和一笔负现金流; otherwise, XIRR returns the #NUM.否则,XIRR 返回#NUM。 error value.错误值。

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

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