+ Reply to Thread
Results 1 to 6 of 6

Return multiple values for multiple criterias

  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    MS Excel 2016
    Posts
    34

    Return multiple values for multiple criterias

    Hi,

    I am having a list of samples as in 'D' and want to return values as in 'E' with criteria as in the 'A' and 'B' columns. The criteria suggest that, if there is 'r' in the text then return 'RBCL-F'. Following is the formula that works if the text doesn't have similar text, but if I am having similar text. So, I am getting the wrong values (as in E4).

    Please Login or Register  to view this content.

    For this, I think
    Please Login or Register  to view this content.
    must be integrated somewhere in the formula, so that it considers only the first letter. Pls, assist, with how it can be done?


    A B
    r RBCL-F
    m MATK-F

    D E
    rASBT1 RBCL-F
    mASBT2 MATK-F
    rASBM4 it should return "RBCL-F", but as it has M, the formula is returning "MATK-F
    Attached Files Attached Files
    Last edited by rajamdade; 07-29-2021 at 04:49 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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Return multiple values for multiple criterias

    Which version of Excel do you have? Please update your profile to make this clear: Is it Excel 16 for Mac or Excel 2016?

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    MS Excel 2016
    Posts
    34

    Re: Return multiple values for multiple criterias

    Thanks, I have updated the Excel version.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Return multiple values for multiple criterias

    Great. No sample workbook, though ... Waiting for that.

  5. #5
    Registered User
    Join Date
    06-21-2014
    Location
    India
    MS-Off Ver
    MS Excel 2016
    Posts
    34

    Re: Return multiple values for multiple criterias

    Done, I have uploaded a sample workbook too.

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,426

    Re: Return multiple values for multiple criterias

    It's as simple as this (I think):

    =IFERROR(VLOOKUP(LEFT(D2,1),$A$2:$B$3,2,0),"")

    What am I missing?

+ 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] Return value based on multiple criterias?
    By Busk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-08-2019, 05:12 AM
  2. vLookup the sum of multiple values from multiple criterias
    By jos283 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-17-2019, 05:20 AM
  3. Replies: 2
    Last Post: 04-15-2019, 08:22 PM
  4. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  5. Help! Formula: Look up multiple text string and return multiple values
    By Kchiolero in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-23-2014, 03:06 PM
  6. [SOLVED] Populate Values in Multiple List Boxes based on Multiple Criterias
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-09-2013, 11:39 AM
  7. Return to cell with multiple criterias
    By mmaxumus2008 in forum Excel General
    Replies: 5
    Last Post: 01-20-2012, 09:52 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