+ Reply to Thread
Results 1 to 9 of 9

Combination of rows of data with condition

  1. #1
    Forum Contributor
    Join Date
    05-21-2019
    Location
    Tabriz,Iran
    MS-Off Ver
    2010
    Posts
    186

    Combination of rows of data with condition

    Hi all

    I need this Expected result
    Thanks

    8.jpg
    Attached Files Attached Files
    Last edited by Yaghoub61; 10-02-2022 at 07:34 AM.
    Notice:
    my main language is not English

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Combination of rows of data with condition

    Still using Excel 2010?

    What is the MAXIMUM number of values that will need to be concatenated?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    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,916

    Re: Combination of rows of data with condition

    Administrative Note:

    DO THIS NOW, PLEASE!


    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    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.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Combination of rows of data with condition

    EDIT
    answers while i was creating spreadsheet
    ignore

    are you still using version 2010 excel
    textjoin is a later version function
    =TEXTJOIN("-", TRUE, IF(A2=$A$2:$A$12,$B$2:$B$12, ""))
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    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,916

    Re: Combination of rows of data with condition

    For MS365:

    =TEXTJOIN("-",,FILTER($B$2:$B$7,$A$2:$A$7=A2))

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combination of rows of data with condition

    with Power Query (XL2010 require Power Query add-in)

    Please Login or Register  to view this content.
    grp.png
    Attached Files Attached Files
    Last edited by sandy666; 10-02-2022 at 07:39 AM.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Combination of rows of data with condition

    For ealier versions:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    =concatall(IF($A$2:$A$7=A2,$B$2:$B$7,""),"-")

    The formulae are enclosed within a pair of { }, these are array formulae.

    These are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see the curly brackets { } appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Combination of rows of data with condition

    PowerQuery
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    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,916

    Re: Combination of rows of data with condition

    Thanks for the rep.

+ 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] Find specified value's possible combination in a row based on condition
    By haxor in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-24-2020, 03:30 AM
  2. I need to reference rows of data and save certain rows when a condition is met.
    By Cody S in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2019, 11:25 PM
  3. Replies: 1
    Last Post: 08-07-2019, 11:25 PM
  4. Combination algorithm for this condition
    By sleepwalker49 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2018, 10:48 AM
  5. [SOLVED] Exclude Rows of Data Based on Combination of Criteria
    By PoLyGLoT in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-04-2018, 01:01 PM
  6. [SOLVED] List of pair combination with desired condition
    By fatwa.amanu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2014, 04:29 AM
  7. IF the condition is a combination of letters and number, please help
    By jas712 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-22-2012, 10:32 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