+ Reply to Thread
Results 1 to 6 of 6

Concatenate values in range if value in multiple columns is true

  1. #1
    Registered User
    Join Date
    09-24-2019
    Location
    Norway
    MS-Off Ver
    Office 2019
    Posts
    23

    Concatenate values in range if value in multiple columns is true

    Hey,

    I am making a 5 x 5 risk Matrix. Every risk is rated With a probability score (1-5) and a consequence score (1-5) which determine their position (1-25) in the risk matrix.

    I have a summary table of all the risks. The table contain the risk ID, the probability score and the consequence score. I need to concatenate all the risk ID of every risk that has the same risk coordinates in the corresponding cell in the risk Matrix.

    I previously solved this With a helping Matrix that listed all the risk IDs for each risk Matrix position 1-25. But my solution was Limited to a set number of possible risks, and it is a lot of work to adjust this if the Maximum is exceeded.

    Is it possible to make a formula that basically concatenate all risk IDs from the risk table, based on the probability and consequence values (coordinates) and Place them in the corresponding risk Matrix cell?


    Please have a look at the Attached file.

    Edit: This is for my Excel at work which is 2016. TEXTJOIN does not work in this Version.
    Attached Files Attached Files
    Last edited by LGN; 05-14-2020 at 08:41 AM.

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

    Re: Concatenate values in range if value in multiple columns is true

    In E7 copied across and down:

    =TEXTJOIN(", ",TRUE,IF($E$29:$E$50=$D7, IF($F$29:$F$50=E$21,$C$29:$C$50,""),""))
    Attached Files Attached Files
    Last edited by AliGW; 05-14-2020 at 05:32 AM.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-24-2019
    Location
    Norway
    MS-Off Ver
    Office 2019
    Posts
    23

    Re: Concatenate values in range if value in multiple columns is true

    Thank you. Unfortunately TEXTJOIN does not work With my Excel. I use Excel 2016, not 365.

    Do you know a workaorund?
    Last edited by AliGW; 05-14-2020 at 08:05 AM. Reason: Please don't quote unnecessarily!

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

    Re: Concatenate values in range if value in multiple columns is true

    Well, you have put Excel (Office) 2019 in your forum profile, which is what I based my solution on!!!

    Please update your user profile to Excel 2016 so that others don't end up wasting their time.

  5. #5
    Registered User
    Join Date
    09-24-2019
    Location
    Norway
    MS-Off Ver
    Office 2019
    Posts
    23

    Re: Concatenate values in range if value in multiple columns is true

    I'm sorry, I use both 2019 and 2016. 2019 is my private Version, and 2016 is the Version at work. I should have specified that in the initial post.
    Last edited by AliGW; 05-14-2020 at 08:19 AM. Reason: Please don't quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: Concatenate values in range if value in multiple columns is true

    You should update your profile - anybody answering will look at it as a guideline, so you should show the oldest version on which you need anything to work. You can give both, as I have done in mine.

    I don't have time at the moment to help further (I'm at work online), but someone else will.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

+ 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 list with non-blank values from a range with multiple columns
    By MikeBR in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-18-2020, 07:27 AM
  2. [SOLVED] Lookup multiple criteria in multiple columns in multiple rows; return true if exists
    By ufdlim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2019, 02:03 PM
  3. [SOLVED] Counting multiple columns with multiple mixed true/false values
    By Pr0 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-22-2019, 02:02 PM
  4. Need to identify duplicate values in multiple columns, concatenate and then delete
    By AFINLEY in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-26-2017, 07:50 AM
  5. [SOLVED] VBA Concatenate string values from multiple columns in separate worksheet
    By thedefense in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-21-2017, 08:02 AM
  6. Replies: 3
    Last Post: 07-28-2016, 01:47 AM
  7. Replies: 2
    Last Post: 05-26-2015, 07:29 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