+ Reply to Thread
Results 1 to 6 of 6

Is there a way to use HLOOKUP with CORREL?

  1. #1
    Registered User
    Join Date
    08-08-2023
    Location
    Utah
    MS-Off Ver
    Office 365
    Posts
    5

    Is there a way to use HLOOKUP with CORREL?

    I need to test the relationship between the values in two dynamic columns. The position of the first column will always be known. The position of the second column will vary depending on the column heading.

    Observations are in columns, with an observation heading ID (0 ? 300) and a rating (1/0 for Observed/Not Observed).

    Rows contain information (date, location, observer, etc.) and each specific column?s rating. Depending on the dataset, the number of columns can vary from 30 to 300 with the number of rows varying from 30 to 4500. The row and column names will vary from analysis to analysis.

    Each heading ID is assigned to a specific group (A ? F for this example) in a many to one relationship. Also, the order of the observation headings cannot be altered.

    A simplified dataset is attached. I have placed the correlation formulas in row 2 and the group totals starting in column AP. I?ve also color-coded columns by group to make tracking the group calculations easier. The actual data spans 5 worksheets across 2 workbooks.

    By using SUMIF I have aggregated the column scores into a single group score for each row (columns AP:AU).
    I now need to use CORREL to test the relationship between the ratings in each column and that column?s total group score. I believe HLOOKUP will be the best approach to identify the proper group score with each individual column. However, from what I can tell HLOOKUP indexing will not work. I need to include the full range of rows for both columns. Again, the number of rows may vary from 300 to 4500.

    For example, the formula in B2 would start with ?CORREL(B6:B25,? and the second vector in AQ6 would be identified via ?HLOOKUP(B4,AP5:AU25,?. Instead of the row argument specifying and returning a single value, I need the entire vector AQ6:AQ25 returned to the CORREL function.

    I?d appreciate any suggestions/guidance/alternative approaches anyone can provide.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by Venturer; 08-08-2023 at 03:42 PM. Reason: Reinsert spreadsheet

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,507

    Re: Is there a way to use HLOOKUP with CORREL?

    Welcome to the forum.

    A simplified dataset is attached.
    Not so.


    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-08-2023
    Location
    Utah
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Is there a way to use HLOOKUP with CORREL?

    Sorry it didn't upload. Probably because I didn't click "Upload" after selecting the file . Thank you for catching that.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,507

    Re: Is there a way to use HLOOKUP with CORREL?

    Not HLOOKUP, INDEX/MATCH.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,507

    Re: Is there a way to use HLOOKUP with CORREL?

    Or, with 365

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,507

    Re: Is there a way to use HLOOKUP with CORREL?

    Thanks for the rep.



    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Pearson & Correl
    By Jim_Robison in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2023, 11:37 PM
  2. use of the correl function with a lag
    By baudet_bel in forum Tips and Tutorials
    Replies: 0
    Last Post: 07-13-2021, 09:38 AM
  3. Replies: 2
    Last Post: 07-22-2020, 09:55 AM
  4. correl function and div/0
    By Alfie101 in forum Excel General
    Replies: 2
    Last Post: 03-29-2016, 03:11 AM
  5. correl function
    By censura in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-18-2007, 05:13 AM
  6. CORREL - IF Command .....
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 08-20-2006, 03:40 PM
  7. [SOLVED] Does Correl/Rank combo work eg CORREL(cols E & H) where E&H=RANK(.
    By Emmanuel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2005, 11:40 AM

Tags for this Thread

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