+ Reply to Thread
Results 1 to 7 of 7

How to calculate XNPV with blank cells?

  1. #1
    Registered User
    Join Date
    12-06-2012
    Location
    ipmosth his
    MS-Off Ver
    Excel 2010
    Posts
    3

    How to calculate XNPV with blank cells?

    Ok, so I am having trouble calculating NPV based on cashflow dates and I am not sure how to solve this problem. It would be great if some excel Guru could help me out:

    I have a massive file that contains daily dates across (eg from B3 to all the way across to for example XX3)
    Then I have thousands of contracts listed in the rows below and their cash flows below a corresponding date.(the day on which the cash flow is expected)
    Not one of the contracts have a cashflow corresponding to every date. (there are many blank cells in the rows containing the cash flows.

    How can I calculate the XNPV for each of those contracts?

    Any thoughts would be greatly appreciated.

    Thanks!
    Last edited by Raker; 12-06-2012 at 06:01 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculating XNPV with blank Cells??? Any ideas?

    Select all the blank cells and fill with zeros?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: How to calculate XNPV with blank cells?

    Hi Raker,

    Can you fill in the blank cells with a 0?

    A quick way to do it is using the Go To function.

    Highlight the whole area of cash flows, press F5, click on Special..., choose Blanks...

    This should now just highlight all the blank cells... type 0, then CTRL-ENTER... This should fill in all the blanks with a zero...

    Then the XNPV formula should work now...

    I'm not sure what XNPV does, I tried replicating it like the NPV or PV, but couldn't get it the same...

    Anyway, let me know if this is what you need...

    Dennis

  4. #4
    Registered User
    Join Date
    12-06-2012
    Location
    ipmosth his
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to calculate XNPV with blank cells?

    Thanks Dennis, I think you hit the nail on the head. It seems like such a simple solution, haha. I really appreciate it.
    Thanks again

  5. #5
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: How to calculate XNPV with blank cells?

    Hope it worked... let me know otherwise...

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to calculate XNPV with blank cells?

    Raker: Please don't duplicate posts.

    http://www.excelforum.com/excel-gene...any-ideas.html

  7. #7
    Registered User
    Join Date
    12-06-2012
    Location
    ipmosth his
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: How to calculate XNPV with blank cells?

    Apologies for the duplication, was the fist time I used this and made a mistake. Will mark as solved. thanks again all.

+ 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