2号要引用1号的当日余额 3号要引用2号的当日余额
假设你的余额C20, maparray函数在D2
那试试
C20[;D2:-1]
======
参考
层次坐标概念-https://help.fanruan.com/finereport/doc-view-339.html