# Excel NPV Function Assistance

I have a string of Cashflows that can vary based on "timeframe".  I have put in a table that looks for the number of months and then matches the cashflows within that period to come up with an NPV.

Here's the problem.  I can't get the NPV calculation correct.  The Excel Help is not helpful in determining which flows to use.  I have tried to create an "array" but I still do not think I have the NPV calculation correct.

Can you take a look?

B.
NPVv2.xlsm
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
HI,

NPV allow only one cell wide Ranges

pls try  this array formula (Ctrl-Shift-Enter)

=NPV((B5+B6),F40:BN40+F41:BN41)

Result 159'490.-

Since you use Monthly payments then try  (Ctrl-Shift-Enter)

=NPV((B5+B6)/12,F40:BN40+F41:BN41)

Result  458'085.-

Regards
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
I think this works!  However, my question would be why is NPV different for the same time period regardless of if you look at in monthly or yearly?  Is it due to compounding?

Thanks so much for the insight on the Array formula!

B.
0
Author Commented:
I spoke too soon.  You see, if you change the time table (i.e. # of months), the NPV should also change given that the cashflows expand or contract based on the selection in the first cell for analysis period.

Could you take a look and comment?

Much thanks,

B.
0
Author Commented:
In fact, if you change the Discount Rate or Risk premium, nothing changes either.

B.
0
Author Commented:
Rgonzo,

Can you take a look?  This model does not work when you change the parameters.

Thank you,

b.
0
Commented:
Could you send a file with the changed data?
0
Author Commented:
Rgonzo,

Thank you for the response....... I've attached the file.  Here's what I can see......my formula(s) in row 40/41 no longer work where it adjusts for the time placed in cell B3.  This must be a really stupid error on my part but I've played with it and for some reason, I cannot get it to work.... If the formula worked, then I think your solution would probably work.

In the end, I'm trying to get NPV produced with the ability to modify the variables.

Much thanks for taking a second look.

B.
NPVv3.xlsm
0
Commented:
the file seems to change

are you sure calculation is automatic if not fire it with F9 to see changes
0
Author Commented:
On my system, it doesn't change when you change the numbers/variables.  It does change when you press F9.  Is there a way to make this fire automatically?  I've never seen a formula not "fire".  The people who will be using this calculation will not understand how to "fire" the changes.

Thank you,

B.
0
Commented:
Goto
File / Options / Formulas / Calculation Options and check

Workbook calculation automatic

Regards
0
Author Commented:
Great!  Works!  Thank you very much.......

B.
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.