+ Reply to Thread
Results 1 to 15 of 15

Textjoin search a range with multiple criteria

  1. #1
    Registered User
    Join Date
    05-02-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 2019
    Posts
    68

    Question Textjoin search a range with multiple criteria

    Not sure why this isn't working:

    Please Login or Register  to view this content.
    Looking to search the range that contains both "REV" AND "LAB".
    Result is just a blank cell. Any help greatly appreciated.

    Book2 - Copy.xlsx
    Last edited by purgamentum; 02-07-2023 at 01:25 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Textjoin search a range with multiple criteria

    Hi,
    please attach a sample file with data. It will be much easier to us to find a solution
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    05-02-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 2019
    Posts
    68

    Re: Textjoin search a range with multiple criteria

    Quote Originally Posted by tanasedn View Post
    Hi,
    please attach a sample file with data. It will be much easier to us to find a solution
    Thanks; added a file to the top post.

  4. #4
    Registered User
    Join Date
    02-09-2020
    Location
    United States
    MS-Off Ver
    Microsoft Office Home and Business 2021
    Posts
    19

    Re: Textjoin search a range with multiple criteria

    Hello! If you are looking to return a horizontal list of results that contain both "REV" and "LAB", you can use the formula below. All are in the "Income" category, and the results you're looking for (REVDWLAB, REVINLAB, REVSSLAB, REVTBLAB, REVTFLAB, REVWPLAB, REVMSLAB, REVSALAB, REVFILAB, REVMPLAB, REVFALAB) should be in column A. I hope this helps!

    =TEXTJOIN(", ",TRUE,FILTER(A:A,ISNUMBER(SEARCH("*REV*"&"*LAB*",A:A))))

  5. #5
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,381

    Re: Textjoin search a range with multiple criteria

    Small change. Office 2019 does not have the FILTER function.

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Textjoin search a range with multiple criteria

    Just a little adjustment om your formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-09-2020
    Location
    United States
    MS-Off Ver
    Microsoft Office Home and Business 2021
    Posts
    19

    Re: Textjoin search a range with multiple criteria

    Thank you for the modification. I didn't realize that.

  8. #8
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: Textjoin search a range with multiple criteria

    JEC's formula would work (remember, the formula must be array-entered) if the range was set to match the range you used, but I would combine his concatenation into a single text string...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Rick Rothstein; 02-04-2023 at 12:34 PM.

  9. #9
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,381

    Re: Textjoin search a range with multiple criteria

    In VBA it would be easy with a double Filter

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    05-02-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 2019
    Posts
    68

    Re: Textjoin search a range with multiple criteria

    Sorry for the delay; busy with other work. Thank you all very much! All 3 of those are working for me

  11. #11
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: Textjoin search a range with multiple criteria

    Quote Originally Posted by JEC. View Post
    In VBA it would be easy with a double Filter

    Please Login or Register  to view this content.
    That line of code does not guarantee that "REV" will always occur before "LAB" (which is what I understood the OP to want).

  12. #12
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,381

    Re: Textjoin search a range with multiple criteria

    Correct, I understood just containing both... nevertheless, it's solved

  13. #13
    Registered User
    Join Date
    05-02-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 2019
    Posts
    68

    Re: Textjoin search a range with multiple criteria

    Quote Originally Posted by JEC. View Post
    Correct, I understood just containing both... nevertheless, it's solved
    True; I didn't need them to be in order, thank you all!

  14. #14
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Textjoin search a range with multiple criteria

    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way of saying thank you !

  15. #15
    Registered User
    Join Date
    05-02-2020
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 2019
    Posts
    68

    Re: Textjoin search a range with multiple criteria

    Quote Originally Posted by tanasedn View Post
    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way of saying thank you !
    I marked it solved days ago; here's your email notification, thread says solved in the subject:
    Attachment 817098

+ 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. Textjoin with Multiple If conditions in same range
    By saxena_mk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-23-2022, 05:19 AM
  2. [SOLVED] Match two criteria and return multiple records - INDEX & AGGREGATE, TEXTJOIN function
    By remyte in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2019, 01:53 PM
  3. Change search range and search criteria in my code
    By scott1945 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2018, 02:53 PM
  4. [SOLVED] TEXTJOIN with multiple criteria
    By Allerdrengen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2018, 09:22 AM
  5. Create User form to perform search using multiple search criteria
    By cherias in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2015, 06:16 AM
  6. Replies: 4
    Last Post: 05-20-2014, 10:03 AM
  7. Search Multiple Worksheets Against List of Non-Exact Search Criteria?
    By thump4r in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2010, 03:46 PM

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