+ Reply to Thread
Results 1 to 5 of 5

CORREL function with multi criterias

  1. #1
    Registered User
    Join Date
    05-06-2019
    Location
    France
    MS-Off Ver
    365
    Posts
    2

    CORREL function with multi criterias

    Hi all,

    I am trying to evaluate correlation between two columns with:
    - 1 criteria on first column
    - 1 criteria on second column
    - 1 criteria depending on another column

    Example below:
    2019-05-06_14-52-57.jpg

    I want to use correl function for question 1 and question 2, keeping only values of question 1 and 2 below 11 and non null + only rows with "France" in column H.

    I tried several options but did not manage to make it work with all 3 criteria. For instance, it is working with two criterias (below 11 for Q1 and below 11 for Q2) using this: =CORREL(IF(F2:F8<11;F2:F8;"");IF(G2:G8<11;G2:G8;""))

    Thank you a lot for your help!

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: CORREL function with multi criterias

    Hi

    I'm not sure if output from this formula (control+shift+enter) would be correct.

    =CORREL(IF(H2:H8="FRANCE",IF(F2:F8<11,F2:F8,"")),IF(G2:G8<11,G2:G8,""))

    An attempt.

    A sample file with some attended results could be helpful.

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: CORREL function with multi criterias

    try this:

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

    accept with Ctrl+Shift+Enter (not just Enter).

    Result the same as canapone's formula
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Registered User
    Join Date
    05-06-2019
    Location
    France
    MS-Off Ver
    365
    Posts
    2

    Re: CORREL function with multi criterias

    Quote Originally Posted by KOKOSEK View Post
    try this:

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

    accept with Ctrl+Shift+Enter (not just Enter).

    Result the same as canapone's formula
    Hi Kokosek,

    Thank you so much. It does work! Canapone's answer was fine too, but adding the criteria <>"" is important since it avoids counting nulls as 0.

    Best,

    Guillaume

  5. #5
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: CORREL function with multi criterias

    You welcome.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. [SOLVED] How to Use CORREL Function with Non-Contiguous Arrays
    By EverClever in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-05-2017, 10:12 AM
  2. correl function and div/0
    By Alfie101 in forum Excel General
    Replies: 2
    Last Post: 03-29-2016, 03:11 AM
  3. Educate me on the correl function
    By Butcher1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-17-2014, 04:37 PM
  4. Excluding Zeros from CORREL Function
    By WWOL in forum Excel General
    Replies: 9
    Last Post: 07-29-2010, 02:06 PM
  5. Correl Function Confusion
    By leem in forum Excel General
    Replies: 1
    Last Post: 04-24-2008, 09:49 AM
  6. correl function
    By censura in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-18-2007, 05:13 AM
  7. 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