+ Reply to Thread
Results 1 to 7 of 7

automatically updating row information in CORREL function

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    3

    automatically updating row information in CORREL function

    I am analyzing data sets in Excel. I am determining whether there is a correlation between the data set in File 1 and multiple data sets in File 2. File 3 contains the correlation analyses of the data set in File 1 with the other data sets in File 2. See example below. Rather than manually entering in the new row and column information for each data set in the Excel CORREL equation I would like to create a function in Excel that essential does this.

    For Cell A1 of File 3 the Excel function is: = CORREL('File1'!$A$1:$Z$100,'File2'!A1:Z100),
    For Cell A2 of File 3 the Excel function is: = CORREL('File1'!$A$1:$Z$100,'File2'!A101:Z200),
    For Cell A3 of File 3 the Excel function is: = CORREL('File1'!$A$1:$Z$100,'File2'!A201:Z300),
    and so on. Thank you.

  2. #2
    Forum Contributor
    Join Date
    12-31-2012
    Location
    Jhang, Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: automatically updating row information in CORREL function

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: automatically updating row information in CORREL function

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copied down
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    01-06-2014
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: automatically updating row information in CORREL function

    I simplified the CORREL equations that I initially posted and thought I'd be able to apply the solutions what were posted. Unfortunately I haven't been able to get them to work. My actual CORREL equations are:

    CORREL('Total Observed Ig Usage'!$C$2:$BC$215,'[World Development Indicators Economic Policy & Debt National Accounts (downloaded 01-02-2014).xls]Sorted Data'!C$2:$BC$215)

    CORREL('Total Observed Ig Usage'!$C$2:$BC$215,'[World Development Indicators Economic Policy & Debt National Accounts (downloaded 01-02-2014).xls]Sorted Data'!C$216:$BC$429)

    Thank you!

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: automatically updating row information in CORREL function

    Try this
    =CORREL('Total Observed Ig Usage'!$C$2:$BC$215,INDEX('[World Development Indicators Economic Policy & Debt National Accounts (downloaded 01-02-2014).xls]Sorted Data'!$C$2:$BC$429,214*(ROWS($A$1:A1)-1)+1,1):INDEX('[World Development Indicators Economic Policy & Debt National Accounts (downloaded 01-02-2014).xls]Sorted Data'!$C$2:$BC$429,214*ROWS($A$1:A1),COLUMN($BC$1)-1))

  6. #6
    Registered User
    Join Date
    01-06-2014
    Location
    North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: automatically updating row information in CORREL function

    I got the dreaded "#REF!" error when I copied the formula directly into Excel.

    I used the Evaluate Formula to check where the error occurs. It looks like it blows up at the last step. The step before blow up looks like ... Sorted Data'!$C$2:$BC$429,214,54)) and then ...Sorted Data'!$C$2:#REF!).

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: automatically updating row information in CORREL function

    Hard to say without seeing the spreadsheet. Sorry

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 10
    Last Post: 10-05-2010, 02:13 PM
  2. Replies: 3
    Last Post: 01-14-2009, 03:02 PM
  3. Correl Function Confusion
    By leem in forum Excel General
    Replies: 1
    Last Post: 04-24-2008, 09:49 AM
  4. correl function
    By censura in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-18-2007, 05:13 AM
  5. Correlation Coefficient function CORREL
    By dataperson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2006, 05:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1