LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default calculate a correlation with ranges

All i need is to calculate a correlation of two ranges and assign it to a
variable. I tried this but i get an 91 error (object or with block not set):

dim correlation as range
Set correlation.Formula = "=correl(inSerie" & i & ",inSerie" & j & ")"

but, if i replace "correlation" by range("a1"), then it works fine.

 
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 i calculate pearson correlation coefficient for excel graph university student that is lost Charts and Charting in Excel 11 September 18th 06 04:04 PM
calculate ranges Bob Bedford Excel Worksheet Functions 6 November 25th 05 11:03 AM
How do I calculate an offset between two ranges? mo childs Excel Programming 4 October 19th 05 11:27 AM
how to calculate number ranges Lori Excel Worksheet Functions 2 May 2nd 05 05:05 PM
How do I use the "Correlation" dialog box with multiple ranges? Paulf6 Excel Discussion (Misc queries) 1 April 4th 05 09:14 PM


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