#1   Report Post  
jdeumer
 
Posts: n/a
Default Match and Index


L.S.,

For my thesis I have sorted stocks into quintiles based on an default
indicator and calculated the average as following:

For Q1:
=AVERAGE(LARGE($B14:$FT14,ROW(A$1:OFFSET(A$1,$FW14/5-1,0,1))))
For Q2:
=AVERAGE(LARGE($B14:$FT14,ROW(OFFSET(B$1,$FW14/5,0,1):OFFSET(B$1,2*$F
W14/5-1,0,1))))

For Q5:
=AVERAGE(LARGE($B14:$FT14,ROW(OFFSET(E$1,4*$FW14/5,0,1):OFFSET(E$1,$FV

14-1,0,1))))

(all array functions)

where
$B14:$FT14 = the range with all available stocks and
the ROW function indicates the range for “k”: since the number of
available stocks differs per month, the value for "k" (in this case a
range) needs to be adapted every time.
Some more details are included in this formula considering the rounding
of the number of stocks per portfolio. This is however not relevant for
my question.

Perhaps not too elegant, it works perfectly. The next challenge is
matching returns to the indicator for default risk. Every observation
of the indicator has a matching average return, stated elsewhere in the
sheet. Now I need to sort the stocks based on the indicator (as above)
and calculate the average return for the portfolio.

So if Q1 consists of stocks 2,4,7 and 8 for example, the average return
for Q1 should consist of the average of the returns for stocks 2,4,7 and
8. How can I make Excel do this? By using INDEX and MATCH? I tried this
with the unsuccessful result:


{=AVERAGE(INDEX(B902:FT902,MATCH(LARGE($B14:$FT14, ROW(A$1:OFFSET(A$
1,$FW14/5-1,0,1)))),$B14:$FT14,0))}

If somebody can help, I’d be very grateful!

Thanking you in advance,

RJE Deumer.


--
jdeumer
------------------------------------------------------------------------
jdeumer's Profile: http://www.excelforum.com/member.php...o&userid=25181
View this thread: http://www.excelforum.com/showthread...hreadid=387098

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
Index and Match issues Mo Excel Worksheet Functions 3 May 19th 05 07:16 PM
Match, Index, Vlookup, Large....Help Please [email protected] Excel Worksheet Functions 3 December 15th 04 01:38 PM
Match & Index Phyllis B. Excel Worksheet Functions 2 November 27th 04 03:26 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 09:41 AM.

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

About Us

"It's about Microsoft Excel"