+ Reply to Thread
Results 1 to 4 of 4

XNPV Calc that Adjusts if the Dates and Amounts Change

Hybrid View

  1. #1
    Registered User
    Join Date
    08-23-2010
    Location
    NY, NY
    MS-Off Ver
    Excel 2007
    Posts
    16

    XNPV Calc that Adjusts if the Dates and Amounts Change

    I have a stream of cash flows and corresponding dates that I am calculating an XNPV for... I have the model fully automated to a few inputs can change everything...

    However, I can't get the XNPV calculation to automatically change it's parameters as the cash flows and dates change... Is there anyway to do this?

    Basically, I'm trying to find a way to have the XNPV function search for the first and last date with a cash flow and reset itself to calculate for those new cash flows.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: XNPV Calc that Adjusts if the Dates and Amounts Change

    I find the easiest way to handle dynamic ranges is to use tables. Put your cash flows in one column, and then the dates in the column next to the cash flows. Highlight one of the cells and hit Ctrl-T. This will generate a table.

    For your xnpv calculation, you should use the table references for the ranges. You will get something like this:
    =XNPV(0.05,Table1[Column1],Table1[Column2])

    Now you can add or remove rows to the table and the xnpv formula should always adjust.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    08-23-2010
    Location
    NY, NY
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: XNPV Calc that Adjusts if the Dates and Amounts Change

    Pauley,

    thanks for the reply and that's a good tip...

    but in this case, I need the XNPV to only start calculating at the first cash flow... in your example, the XNPV starts calculating at Month 1 regardless of whether or not there's a corresponding value.

    I actually need it to only start calculating at the first corresponding cash flow.

    Does that make sense?

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: XNPV Calc that Adjusts if the Dates and Amounts Change

    Yes, you do make sense, and maybe I did not explain how to use the table. In my example, you would delete the rows that do not have pairs of numbers. The XNPV calculation using the Table references would not need to be changed due to the deleted row, unlike other range referencing methods.

    Based upon your statement:
    I have a stream of cash flows and corresponding dates
    it would see that you should always have a cash flow and a date. Your second post makes it sound like you may have some 'blank' cash flows. That is a different problem, so which one is it?
    Last edited by Pauleyb; 04-26-2013 at 02:35 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1