stephen2009
V2EX  ›  Excel

如何计算不同列金流的 XIRR?

  •  
  •   stephen2009 · Dec 15, 2024 · 1508 views
    This topic created in 514 days ago, the information mentioned may be changed or developed.

    金流位于 B2:B6,D7 ,对应日期位于 A2:A6,C7 ,如何计算 XIRR ?

    找了好多资料都找不到计算方法,求指教。

    日期 买入 日期 卖出
    2024/4/26 5000
    2024/4/30 2000
    2024/5/9 2000
    2024/5/13 3000
    2024/5/15 2000
    2024/7/1 -18000
    3 replies    2024-12-15 22:08:09 +08:00
    Fading2276
        1
    Fading2276  
       Dec 15, 2024
    把日期都放在一列,比如 A 列,从第二行开始
    买入和卖出金额都放在 B 列,从第二行开始,买入记为负数,卖出记为正数。

    在单元格 D1 ,输入下面的公式,回车
    =XIRR(B02:B1000,A02:A1000)
    Fading2276
        2
    Fading2276  
       Dec 15, 2024
    看错了题目,这个不同列还真不会,不好意思。
    sun1719
        3
    sun1719  
       Dec 15, 2024 via Android
    了解下 xirr 公式的原理,自己写函数
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1399 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 23:58 · PVG 07:58 · LAX 16:58 · JFK 19:58
    ♥ Do have faith in what you're doing.