I am trying to create an XIRR function that will adjust the number of periods it measures based on the address of a specific value. For example, if a value occurs in month 48, I want the XIRR function XIRR measure 48 columns of data, but if a value occurs in month 17,
I want XIRR to XIRR only 17 columns. I can get the address of the value and the corresponding dates using =CELL("address", MATCH(... etc., but I canβt figure out how / if I can combine the XIRR inputs. Initially, I was hoping I could do sort of:
=XIRR(A1:Cell("address", [value_reference]), B1:Cell("Address", [date_reference]))
Can anyone help me with this? Using Excel 2007
source share