LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Template for 40-year quarterly cash flow mixed with some monthly flows

OK, well I've done a little more thinking so I hope I can provoke a
response to some more specific ideas.

Outline process:

1. I have a primitive UDF that I call "DateGlobber" that generates a
series of regular-period dates based on a start date, number of
periods, and an interval in months. It just returns these dates as a
variant containing an array to a single cell. I can then use
SMALL(DateGlobber,row()) to return each date in rows on a worksheet.

For the moment I am content for it to rely on the EOMONTH add-in
function. I have not implemented the "convention" part of the function:
I intend that this will allow one to use built-in or add-in Excel
functions other than EOMONTH to do the actual work.

Option Base 1
Public Function DateGlobber(startdate As Date, periods As Long,
interval As Integer, _
Optional convention As Integer) As Variant

Dim count As Integer
Dim arr() As Date


ReDim Preserve arr(1 To periods)

For count = 1 To periods
arr(count) = eomonth(startdate, count * interval)
Next count

DateGlobber = arr

End Function

2. I intend to use or write another function to join the array of
regular period dates to a range-entered set of specific dates. Once I
have a single variant containing all of the dates, including
duplicates, from both sets of dates, I intend to use SMALL to provide a
list of unique dates down however many rows I need on my worksheet.

3. I can then base decisions on whether a value needs to be inflated,
say, by RPI, by testing whether the date is part of the regular-period
dates from my dateglobber function (with some extra to make it
only-every-fourth-period), or not.

Is this reasonable? Particularly re performance. For example, I am
wondering about calculation and recalculation overhead. Can I define a
name "regdates" as =DateGlobber(x,y,z), enter SMALL(regdates,row()) in
my rows and ensure thereby that no recalculation of these cells need
takeplace unless regdates is itself redefined?

 
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
IRR formula for monthly cash flows MB Burgis Excel Worksheet Functions 3 May 12th 06 04:00 AM
How do I calculate IRR using monthly cash flows, not annual? Mike Knoxville Excel Worksheet Functions 2 October 26th 05 03:14 PM
Is the IRR calculation based on cash flows at beginning of year? sammad Excel Worksheet Functions 1 September 6th 05 05:15 PM
Using MIRR, if cash flows are monthly, should rate be / 12? peak10 Excel Worksheet Functions 4 May 4th 05 04:27 AM
How do you calculate rate of return on monthly cash flows Philly Fan Excel Worksheet Functions 1 February 16th 05 04:24 AM


All times are GMT +1. The time now is 11:58 AM.

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"