Results 1 to 25 of 25

Using Textjoin with IF(AND functionality

Threaded View

  1. #1
    Registered User
    Join Date
    04-16-2019
    Location
    London
    MS-Off Ver
    O365 (PC) V 2210
    Posts
    56

    Question Using Textjoin with IF(AND functionality

    Hi

    I am trying to figure out how to use the Textjoin function, but with an IF(AND as part of the logical argument.

    2019-10-28 16_39_57-Window.png

    Above is a small extract of my data set. It is a set of companies with the list of components of ours that they sell (not sensitive info).

    In another worksheet I have all the company names and their category (dealer, distributor, integrator etc) in 2 adjacent columns.

    I am looking to create a table where if someone types in a product of ours (e.g. RAM-B-101) and types a category into a cell (e.g. Dealer) it will text join all the companies that are the selected category and have the selected product in their range.

    =TEXTJOIN(", ",TRUE,IF(AllProducts!A2:AD550=Sheet2!A4,AllProducts!A1:AD1,""))

    This works successfully to Textjoin the company names that have the selected product in their range.

    However I cannot figure out how to insert an AND function to include matching the company category also.

    =TEXTJOIN(", ",TRUE,IF(AND(AllProducts!A2:AD550=$A$4,INDEX(Categories!A2:A31,MATCH(C2,Categories!A2:B31,0))),AllProducts!A1:AD1,""))

    This is what I have got to, but it doesn't work and I am hoping one of you guys could give me some advice.

    Thanks in advance.

    Jon


    -edit

    I have a duplicate question currently also posted in an additional Forum. Here is the link

    https://www.mrexcel.com/forum/excel-...ml#post5363438
    Last edited by MrRAMMounts; 10-30-2019 at 06:01 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. TEXTJOIN issues
    By Daniel_ISS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2019, 01:08 AM
  2. [SOLVED] TEXTJOIN and keep formatting
    By ihb95 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2019, 03:16 AM
  3. Textjoin and if function need help
    By bitozi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-23-2019, 06:35 AM
  4. [SOLVED] Textjoin + condition
    By veeejay in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-04-2019, 01:23 PM
  5. [SOLVED] TEXTJOIN with multiple criteria
    By Allerdrengen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2018, 09:22 AM
  6. Textjoin?
    By johandenver in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 10-01-2017, 03:18 PM
  7. TEXTJOIN function
    By Tony Valko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2016, 06:48 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