+ Reply to Thread
Results 1 to 6 of 6

To return values based on criteria

  1. #1
    Registered User
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    17

    To return values based on criteria

    Hi,

    Attached is the sample sheet.
    My input looks like a range of alphanumeric entries and each entry in Column B is grouped to a alphabet in F.
    So C should return all the concurrent values concatenated based on group in column F.

    sample output is shown in column R. Please help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: To return values based on criteria

    Please try

    R1
    =TEXTJOIN(",",TRUE,IF($F$1:$F$19=$Q1,$B$1:$B$19,""))
    And press Ctrl-Shift-Enter for array formula.

    Regards.

  3. #3
    Registered User
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    17

    Re: To return values based on criteria

    thank you for the help, i tried this formula however, it return all the values i.e for A it also returns values of B

  4. #4
    Registered User
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    17

    Re: To return values based on criteria

    Apologies, it works fine, thank you

  5. #5
    Registered User
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    17

    Re: To return values based on criteria

    It also returns the duplicates as well.

    For Eg B - G2,G3,G4,G5,F2,F3,7,Z3,7. 7 is being repeated 2 times. could you please advise how to eradicate duplicates?

  6. #6
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: To return values based on criteria

    Sorry, I didn't noticed that they are some duplicates in the data.

    Please try again
    M1
    =IF(COUNTIFS(B$1:B1,B1,F$1:F1,F1)=1,B1,"")

    and
    R1
    =TEXTJOIN(",",TRUE,IF($F$1:$F$19=$Q1,$M$1:$M$19,""))
    Press Ctrl-Shift-Enter for array formula.


    Regards.

+ 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. Return values based on multiple criteria
    By mmchaley in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2020, 02:03 PM
  2. [SOLVED] Return several values based on 1 criteria
    By kenjcd in forum Excel General
    Replies: 8
    Last Post: 05-14-2019, 10:57 PM
  3. [SOLVED] Return Values based upon multiple criteria
    By frustrated in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-17-2016, 08:56 AM
  4. Return column values based on criteria
    By SalientAnimal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2014, 10:55 AM
  5. matching values based on criteria and return values from another columns
    By lizard54 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 11:29 AM
  6. Return values from table based on 2 criteria
    By BCjohnstone in forum Excel General
    Replies: 1
    Last Post: 08-30-2006, 09:37 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