LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default =SLOPE(OFFSET(INDEX .... Help please

I think I'm on the right track, but I can't quite figure out how to
get this to work.

I have 3000 rows and 800 columns of data. Working with slope variance
etc. The problem is that the data for each row (firm price holding
period returns) starts at a different date. The prior cells are #N/A.

So what I want to achieve is a formula that will check to find the
first cell with a number (zero returns included) and start the calcs
from that cell both for the known_y's,known_x's. So the knows_y's is
one thing, then parsing that to the known_x's is another.

For a simplified example

Market 0.08 0.03 -0.03 -0.04 0.03 0.00 -0.15
A #N/A #N/A #N/A 0.45 -0.01 -0.03 -0.02
B #N/A -0.02 -0.33 -0.03 0.02 -0.13 0.22

So far I've got:
=SLOPE(OFFSET(INDEX(B2:H2,MATCH(1,ISNUMBER(B2:H2)* (B2:H2<0),0)),
0,0,1,7),OFFSET($E$1,0,0,1,7))

It doesn't work, but I think I'm getting close.

Obviously the offset bit "0,0,1,7)
" won't work as "7" will vary based on the outcome ISNUMBER

Also, how to parse it to the known_x's

Can anybody help please.

Many thanks for any help you can provide

Cheers, Mark
 
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 offset functions Denise Excel Worksheet Functions 8 February 2nd 08 05:05 AM
OFFSET vs INDEX(MATCH(...)) Dave F[_2_] Excel Discussion (Misc queries) 1 January 15th 08 03:12 PM
index match offset? denise Excel Worksheet Functions 10 July 4th 06 04:28 AM
Looking in one col, counting in another. OFFSET?INDEX? Help!! Justin Excel Worksheet Functions 6 May 5th 06 12:12 AM
Index, Match, Offset? Not sure which to use Ms. P. Excel Worksheet Functions 4 July 29th 05 11:04 PM


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