Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.setup
Darren
 
Posts: n/a
Default Drawing data from specific columns of a dynamic range

Hi,

I have historical data; 40 columns of vertically displayed data according to
date which I use to create volatility and correlation matrices. I would like
to look at the volatilities and correlations of the 40 contracts for
different dates and different time periods. (For example, I would like to use
data from 2/6/06 to 25 days past that date, or, I would like to use data from
12/28/05 to 55 days past that date to find out what the differences were for
those specific dates and time periods).

To do this I have created a dynamic range name using input cells; one for
the date, one for the # of days out from that date. The name (DynamicRange)
refers to:
=OFFSET(dailychange!$A$2,MATCH(EDspdvolscorr!$K$2, dailychange!$A$2:$A$506,0)-1,1,EDspdvolscorr!$K$3,145)

Where EDspdvolscorr!$K$2 is the Desired date to start from and
EDspdvolscorr!$K$3 is the desired number of days to go out from.

Now what I would like to do is take a specific column(s) to find the
volatilities and correlations of the data points within that range. Is there
someway to do =CORREL(€ścolumn2 of DynamicRange€ť, €ścolumn 4 of DynamicRange€ť)
or =SQRT(SUMSQ(€ścolumn2 of DynamicRange€ť)/EDspdvolscorr!$K$3) for example?

I think another option I have is to create names for each individual column
and link them all to the input cells. Which is easier/more efficient?

Thanks for your help,

-Darren
  #2   Report Post  
Posted to microsoft.public.excel.setup
Max
 
Posts: n/a
Default Drawing data from specific columns of a dynamic range

.. what I would like to do is take a specific column(s) to find the
volatilities and correlations of the data points within that range.
Is there someway to do
=CORREL("column2 of DynamicRange", "column 4 of DynamicRange")
or =SQRT(SUMSQ("column2 of DynamicRange")/EDspdvolscorr!$K$3)
for example?


Perhaps one way to set it up ..

A sample construct is available at:
http://www.savefile.com/files/4522354
Drawing data from specific cols of a dynamic range_Darren_setup.xls

Create 3 defined / named ranges
(via Insert Name Define):

Col_1:
=OFFSET(dailychange!$A$2,MATCH(EDspdvolscorr!$K$2, dailychange!$A$2:$A$506,0)
-1,EDspdvolscorr!$K$4-1,EDspdvolscorr!$K$3)

Col_2:
=OFFSET(dailychange!$A$2,MATCH(EDspdvolscorr!$K$2, dailychange!$A$2:$A$506,0)
-1,EDspdvolscorr!$K$5-1,EDspdvolscorr!$K$3)

Dates:
=OFFSET(dailychange!$A$2,,,COUNTA(dailychange!$A:$ A)-1)

(Dates is a dynamic range for use in the DV below to ease selection of the
date input)

Then in sheet: EDspdvolscorr,

Assuming the inputs for Date, Days, Column 1, Column 2
will be made in K2:K5, eg:

Date: 01-Dec-05
Days: 5
Column 1: 2
Column 2: 4

we could put in say, K7:K8
=CORREL(Col_1,Col_2)
=SQRT(SUMSQ(Col_2)/$K$3)
to return the reqd calcs

where K2 contains a DV to select the date input
(created via Data Validation, Allow: List, Source: Dates)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Darren" wrote in message
...
Hi,

I have historical data; 40 columns of vertically displayed data according

to
date which I use to create volatility and correlation matrices. I would

like
to look at the volatilities and correlations of the 40 contracts for
different dates and different time periods. (For example, I would like to

use
data from 2/6/06 to 25 days past that date, or, I would like to use data

from
12/28/05 to 55 days past that date to find out what the differences were

for
those specific dates and time periods).

To do this I have created a dynamic range name using input cells; one for
the date, one for the # of days out from that date. The name

(DynamicRange)
refers to:

=OFFSET(dailychange!$A$2,MATCH(EDspdvolscorr!$K$2, dailychange!$A$2:$A$506,0)
-1,1,EDspdvolscorr!$K$3,145)

Where EDspdvolscorr!$K$2 is the Desired date to start from and
EDspdvolscorr!$K$3 is the desired number of days to go out from.

Now what I would like to do is take a specific column(s) to find the
volatilities and correlations of the data points within that range. Is

there
someway to do =CORREL("column2 of DynamicRange", "column 4 of

DynamicRange")
or =SQRT(SUMSQ("column2 of DynamicRange")/EDspdvolscorr!$K$3) for example?

I think another option I have is to create names for each individual

column
and link them all to the input cells. Which is easier/more efficient?

Thanks for your help,

-Darren



  #3   Report Post  
Posted to microsoft.public.excel.setup
Darren
 
Posts: n/a
Default Drawing data from specific columns of a dynamic range

Thanks for your help Max, that was very thorough.

-DMS

"Max" wrote:

.. what I would like to do is take a specific column(s) to find the
volatilities and correlations of the data points within that range.
Is there someway to do
=CORREL("column2 of DynamicRange", "column 4 of DynamicRange")
or =SQRT(SUMSQ("column2 of DynamicRange")/EDspdvolscorr!$K$3)
for example?


Perhaps one way to set it up ..

A sample construct is available at:
http://www.savefile.com/files/4522354
Drawing data from specific cols of a dynamic range_Darren_setup.xls

Create 3 defined / named ranges
(via Insert Name Define):

Col_1:
=OFFSET(dailychange!$A$2,MATCH(EDspdvolscorr!$K$2, dailychange!$A$2:$A$506,0)
-1,EDspdvolscorr!$K$4-1,EDspdvolscorr!$K$3)

Col_2:
=OFFSET(dailychange!$A$2,MATCH(EDspdvolscorr!$K$2, dailychange!$A$2:$A$506,0)
-1,EDspdvolscorr!$K$5-1,EDspdvolscorr!$K$3)

Dates:
=OFFSET(dailychange!$A$2,,,COUNTA(dailychange!$A:$ A)-1)

(Dates is a dynamic range for use in the DV below to ease selection of the
date input)

Then in sheet: EDspdvolscorr,

Assuming the inputs for Date, Days, Column 1, Column 2
will be made in K2:K5, eg:

Date: 01-Dec-05
Days: 5
Column 1: 2
Column 2: 4

we could put in say, K7:K8
=CORREL(Col_1,Col_2)
=SQRT(SUMSQ(Col_2)/$K$3)
to return the reqd calcs

where K2 contains a DV to select the date input
(created via Data Validation, Allow: List, Source: Dates)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Darren" wrote in message
...
Hi,

I have historical data; 40 columns of vertically displayed data according

to
date which I use to create volatility and correlation matrices. I would

like
to look at the volatilities and correlations of the 40 contracts for
different dates and different time periods. (For example, I would like to

use
data from 2/6/06 to 25 days past that date, or, I would like to use data

from
12/28/05 to 55 days past that date to find out what the differences were

for
those specific dates and time periods).

To do this I have created a dynamic range name using input cells; one for
the date, one for the # of days out from that date. The name

(DynamicRange)
refers to:

=OFFSET(dailychange!$A$2,MATCH(EDspdvolscorr!$K$2, dailychange!$A$2:$A$506,0)
-1,1,EDspdvolscorr!$K$3,145)

Where EDspdvolscorr!$K$2 is the Desired date to start from and
EDspdvolscorr!$K$3 is the desired number of days to go out from.

Now what I would like to do is take a specific column(s) to find the
volatilities and correlations of the data points within that range. Is

there
someway to do =CORREL("column2 of DynamicRange", "column 4 of

DynamicRange")
or =SQRT(SUMSQ("column2 of DynamicRange")/EDspdvolscorr!$K$3) for example?

I think another option I have is to create names for each individual

column
and link them all to the input cells. Which is easier/more efficient?

Thanks for your help,

-Darren




  #4   Report Post  
Posted to microsoft.public.excel.setup
Max
 
Posts: n/a
Default Drawing data from specific columns of a dynamic range

You're welcome, Darren !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Darren" wrote in message
...
Thanks for your help Max, that was very thorough.

-DMS



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 to create a chart based on a 2 dim data range dynamical in 1 d Beertje Charts and Charting in Excel 1 October 25th 05 11:54 AM
Data in narrow columns truncated when saving as DBF Ben Amada Excel Discussion (Misc queries) 2 October 11th 05 11:23 PM
counting cells in a data range that meet 3 specific conditions bekah7 Excel Discussion (Misc queries) 3 October 1st 05 06:21 AM
Data in table, may need to convert to columns with OFFSET? Ron H Excel Discussion (Misc queries) 5 July 31st 05 06:44 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM


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