+ Reply to Thread
Results 1 to 10 of 10

check columns according to matrix

  1. #1
    Registered User
    Join Date
    08-04-2017
    Location
    Munich
    MS-Off Ver
    Excel 2010
    Posts
    40

    check columns according to matrix

    Hi!

    I have attached a xls example cause than it is easier to understand.
    I would need a formula please for the yellow highlighted column I that says the name either from column A or B depending on which value is bigger for the word in column C according to the matrix L1: DG11.
    And that displays no name but "error" in the case that the values of the two names in column A and B are less than 10 points apart according to the matrix L1: DG11.

    E.g. :
    Row 3: Lisi (column A) has a smaller value than Christian (column B) for "autoritär" (Column C) according to the matrix (L1: DG11) , so "Christian" is displayed in column I.

    Row 4: Maria (column A) has a value which is whithin 10 points to the value of Nora (column B) for "verletzlich" (Column C) according to the matrix (L1: DG11) , so "error" is displayed in column I.

    Thank you very much!
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: check columns according to matrix

    Try this in I3 and copy down:

    Please Login or Register  to view this content.
    It's long because of the "less than 10" condition. Could be simplified with helper columns.

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: check columns according to matrix

    withdrawn, my formula is as copy as in post no 2
    Last edited by samba_ravi; 09-26-2018 at 11:31 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    08-04-2017
    Location
    Munich
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: check columns according to matrix

    Thank you a lot, the formula works perfectly!!

    I thought I could extend it to the same problem but with 4 instead of 2 comparison objects but I just realised that that is way too complex for me.
    That's why I am asking for help once more and attach the file. It is the same idea but instead of comparing only column A and B, I have to compare Column A, B, C and D in respect of the word in column E according to the matrix R1: DM11.
    Column K should display the name with the highest value, column L the name with the second highest value, column M the name with the third highest value and column N the name with the lowest value.
    And again it would be great if "error" would be displayed in the case that the values of any of the four names in columns A, B, C and D are less than 10 points apart according to the matrix.

    Thank you very much!
    Attached Files Attached Files

  5. #5
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: check columns according to matrix

    I don't think you can achieve this level of complexity in a formula; trying to order 4 scores and deal with various criteria is going to need a UDF and for that you'll need to post a new thread in the VBA forum.

    WBD

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: check columns according to matrix

    if in 4 Checks difference between any two is less then 10 then what is your expected result for the 4 checks

  7. #7
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: check columns according to matrix

    Hi, to all!

    It's not clear what is the results when the scores in any two is less than 10. Like samba_ravi says, you must give representative manual examples of what you should obtain.

    For now, verify this approach:

    1. When cell K3 is selected, create the following formulated name:
    fScores : =SUMIF($R$2:$R$11,$A3:$D3,INDEX($S$2:$DM$11,,MATCH($E3,$S$1:$DM$1,)))-COLUMN($A3:$D3)%

    2. Then, use this formula in K3:
    =INDEX($A3:$D3,MATCH(LARGE(fScores,COLUMNS($K3:K3)),fScores,))
    And drag it right and down.

    The formulas avoid duplicates. Check file with the result. Blessings!
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-04-2017
    Location
    Munich
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: check columns according to matrix

    Hi to all!
    So sorry for my late response, I havent been able to work for quite a while now unfortunatley.

    Thank you very much for the formulas, they work very well. But just for my understanding and if I ll ever need to adapt something, where is the first one to define the fScores defined? (Sorry if that s a stupid question but I have never worked with such a formula)

    Also very sorry for beiing not precise enough. If the scores in any two is less than 10, the result should already be "error".

    Thank you very much!

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,611

    Re: check columns according to matrix

    To find the formula that defines fScores go to the Formulas tab > Defined Names pane > select Name Manager.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Registered User
    Join Date
    08-04-2017
    Location
    Munich
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: check columns according to matrix

    Thank you! Now I have understood it!
    Thanks for your great help!

+ 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. Problem with solving a feasibility check matrix
    By adamadam0000 in forum Excel General
    Replies: 3
    Last Post: 03-05-2017, 12:46 PM
  2. Replies: 4
    Last Post: 05-17-2016, 01:33 AM
  3. Replies: 2
    Last Post: 02-11-2014, 05:05 AM
  4. Matrix into new columns
    By jennymc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 08:50 AM
  5. Check the length and value of specific columns and comparion check between two sheets
    By sravanthi.boggaram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2011, 06:51 AM
  6. Matrix - check order
    By adamNBU in forum Excel General
    Replies: 0
    Last Post: 05-25-2011, 07:32 AM
  7. matrix from columns
    By darkyou in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2009, 02:30 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