+ Reply to Thread
Results 1 to 8 of 8

Office 365 - Return text in range for criteria

  1. #1
    Registered User
    Join Date
    11-08-2022
    Location
    Poland
    MS-Off Ver
    Office 365
    Posts
    7

    Office 365 - Return text in range for criteria

    Hello all,

    It's my first post here.
    I have little problem how to create formula to return correct answer according to value in cell.

    I have three opinions for each group of three. I need to create formula to return text according to score respectfully for each of groups.
    Already created matrix with score ranges and return texts but don't have any good idea how to create last part.
    Please see attached screenshot.
    Screenshot excel.jpg
    Hope someone can help me with that problem.

    Thank you in advance.
    Last edited by Broken1Winggs; 11-08-2022 at 09:04 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Office 365 - Return text in range for criteria

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook. Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,158

    Re: Office 365 - Return text in range for criteria

    One way:
    =LET(a,INDEX($C$17:$J$19,,MATCH(C3,$C$16:$J$16,0)),F,TEXTBEFORE(a,"-")+0,T,TEXTAFTER(a,"-")+0,INDEX($D$17:$D$19,MATCH(1,(D3>=F)*(D3<=T),0)))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Office 365 - Return text in range for criteria

    Here's another that requires no lookup tables (all built in):

    =LET(ga,VSTACK({0,23,50},{"Low","Medium","High"}),gb,VSTACK({0,23,68},{"Low","Medium","High"}),gc,VSTACK({0,43,74},{"Low","Medium","High"}),c,CHOOSE(--RIGHT(C5,1),ga,gb,gc),HLOOKUP(D5,c,2,1))

    weher C5 is a group name and D5 is a score.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-08-2022
    Location
    Poland
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Office 365 - Return text in range for criteria

    Thank you.

    I will look at regales and also stick up your advise.

  6. #6
    Registered User
    Join Date
    11-08-2022
    Location
    Poland
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Office 365 - Return text in range for criteria

    Quote Originally Posted by Glenn Kennedy View Post
    One way:
    =LET(a,INDEX($C$17:$J$19,,MATCH(C3,$C$16:$J$16,0)),F,TEXTBEFORE(a,"-")+0,T,TEXTAFTER(a,"-")+0,INDEX($D$17:$D$19,MATCH(1,(D3>=F)*(D3<=T),0)))
    Thank you, I will try using this in my work.

  7. #7
    Registered User
    Join Date
    11-08-2022
    Location
    Poland
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Office 365 - Return text in range for criteria

    Quote Originally Posted by AliGW View Post
    Here's another that requires no lookup tables (all built in):

    =LET(ga,VSTACK({0,23,50},{"Low","Medium","High"}),gb,VSTACK({0,23,68},{"Low","Medium","High"}),gc,VSTACK({0,43,74},{"Low","Medium","High"}),c,CHOOSE(--RIGHT(C5,1),ga,gb,gc),HLOOKUP(D5,c,2,1))

    weher C5 is a group name and D5 is a score.
    And I will also try this method and see which one will be easier for me to understand and implemented.
    Thank you for help.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Office 365 - Return text in range for criteria

    Glad to have helped.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) 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 all those who offered 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. Replies: 5
    Last Post: 04-05-2022, 05:56 AM
  2. Replies: 4
    Last Post: 02-08-2021, 02:06 AM
  3. Replies: 3
    Last Post: 12-03-2014, 05:43 PM
  4. [SOLVED] How to match a cell with text with a range of text and return own text
    By ec4excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2014, 11:07 AM
  5. [SOLVED] Return a text value in a cell if criteria is meet within a range
    By fireguy7 in forum Excel General
    Replies: 2
    Last Post: 01-16-2013, 11:49 AM
  6. Replies: 0
    Last Post: 11-16-2012, 11:42 AM
  7. [SOLVED] Sumif based on a text range, text criteria and and text sum range
    By ned0 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2012, 07:45 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