LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default An algebra/programming question


I'm working on an Excel model and the algebra has me stuck as much as the
programming.

Given the following values

Rate1= 0.833333%

A= 999,999.97

CashFlow1= 10,000.00
CashFlow2= 20,000.00
CashFlow3= 162,860.92

Num1= 2 (i.e. CashFlow1 repeats twice)
Num2= 4
Num3= 6


And this equation:


A=((((CashFlow3*((1-(1+Rate)^-Num3)/Rate))*(1+Rate)^-Num2)+(CashFlow2*(1-(1+Rate)^-Num2))/Rate)*(1+Rate)^-Num1)+(CashFlow1*(1-(1+Rate)^-Num1)/Rate)


I'm trying to rearrange it to solve for "Num2".

Can someone assist me?

These points/observations may be helpful:

Above pattern will repeat from 1.N times

That is, it is nested. The inner most nesting is this:

(CashFlow3*((1-(1+Rate)^-Num3)/Rate))


The next level of nesting takes that result from the above and uses it
in this (2nd level of nesting):

(((CashFlow3*((1-(1+Rate)^-Num3)/Rate))*(1+Rate)^-Num2)+(CashFlow2*(1-(1+Rate)^-Num2))/Rate)


I know that if there were only one CashFlow and one Num to solve for that
the equation would be:

Num = - (ln(1-(A*Rate)/CashFlow) / ln( 1+Rate))

I guess this is going to take a VBA loop. I'm comfortable enough with the
VBA. I don't understand what the algebra is though.

TIA.







 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
solving for NPer w/o function (algebra question) Karl Excel Worksheet Functions 11 December 29th 04 08:30 PM
Not exactly a programming question Daryl Timm[_2_] Excel Programming 2 August 14th 04 12:48 AM
Programming Question Mac Lingo[_2_] Excel Programming 3 August 7th 04 06:56 PM
Programming Question Jon Turner Excel Programming 10 June 28th 04 04:03 AM
Help with programming question drummerboy827 Excel Programming 6 September 26th 03 11:03 PM


All times are GMT +1. The time now is 11:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"