#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Up Capture

I am trying to write a function to measure (given a set
of investment returns) the Investment's compound return
when the Benchmark was up divided by the Benchmark's
compound return when the Benchmark was up (Upcapture
Ratio). I have written the equation and it works except
for the part calculating the fund's returns when the
benchmark was up (see FUNDAP below). Thank you for the
help.


Public Function UPCAPTURE(FUNDRETURNS As RANGE, BMRETURNS
As RANGE) As Double
Set subsetfundreturns = Intersect
(FUNDRETURNS.Parent.UsedRange, FUNDRETURNS)
Set subsetbmreturns = Intersect
(BMRETURNS.Parent.UsedRange, BMRETURNS)
Dim FUNDAP As Double
Dim BMAP As Double
Dim FUNDRNGCELL As RANGE
Dim BMRNGCELL As RANGE

BMAP = 1
For Each BMRNGCELL In subsetbmreturns
If BMRNGCELL.Value 0 Then
BMAP = BMAP * (1 + BMRNGCELL.Value)
End If
Next BMRNGCELL

'THIS IS WHERE I NEED TO CALCULATE SIMILAR TO BMAP ABOVE
(But measuring the fund's returns when the benchmark was
up):

FUNDAP = ????

UPCAPTURE = (FUNDAP - 1) / (BMAP - 1)
End Function


Reply
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
How do I capture a date? Capture a variable date & use with text Excel Discussion (Misc queries) 3 November 27th 08 02:40 AM
Excel screen capture to capture cells and row and column headings jayray Excel Discussion (Misc queries) 5 November 2nd 07 11:01 PM
want to capture date elegantpartner Excel Discussion (Misc queries) 1 January 9th 06 04:20 AM
Capture the Workbook Name Minitman Excel Worksheet Functions 12 December 7th 05 04:50 PM
How to capture row number Glen Mettler[_2_] Excel Programming 3 January 20th 04 06:24 PM


All times are GMT +1. The time now is 12:34 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"