+ Reply to Thread
Results 1 to 6 of 6

Concatenate Data using Condition of Search.

Hybrid View

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    44

    Concatenate Data using Condition of Search.

    Hi m trying to solve this, plz help me out.

    I hav set of data in which 2 columns are present Name and Number.
    Multiple Names have list of Difference Number which i need to Concatenate with common Separations.
    I have attched the sample file with easy example.
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,103

    Re: Concatenate Data using Condition of Search.

    Here, try this:

    =TEXTJOIN(",", TRUE, IF($A$3:$A$100=E3, $B$3:$B$100, ""))

  3. #3
    Registered User
    Join Date
    03-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Concatenate Data using Condition of Search.

    It worked well.. will try on actual file and update the main result.. thks
    Last edited by atthershabbir; 10-10-2023 at 07:51 AM.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,103

    Re: Concatenate Data using Condition of Search.

    Put this in E3 to get Names:

    =UNIQUE(FILTER(A3:A500, A3:A500<>""))

    And then in F3 above formula

  5. #5
    Registered User
    Join Date
    03-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    44

    SOLVED : Concatenate Data using Condition of Search.

    Works like a charm.. u guys rock.. thks for quick responses.. cheers

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

    Re: Concatenate Data using Condition of Search.

    Power Query
    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        #"Grouped Rows" = Table.Group(Source, {"Name"}, {{"Count", each _, type table [Name=nullable text, Number=nullable number]}}),
        #"Added Custom" = Table.AddColumn(#"Grouped Rows", "Custom", each [Count][Number]),
        #"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Count"}),
        #"Extracted Values" = Table.TransformColumns(#"Removed Columns", {"Custom", each Text.Combine(List.Transform(_, Text.From), ", "), type text})
    in
        #"Extracted Values"
    Attached Files Attached Files

+ 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] Concatenate if a condition is met
    By Ranbir in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-25-2021, 02:48 PM
  2. [SOLVED] Concatenate with condition
    By ionelz in forum Excel General
    Replies: 8
    Last Post: 02-08-2019, 03:12 PM
  3. Replies: 6
    Last Post: 12-30-2014, 02:12 PM
  4. CONCATENATE FOR TWO OR MORE CONDITION (vba)
    By ionmihairo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2012, 12:50 PM
  5. Replies: 6
    Last Post: 09-03-2011, 09:59 PM
  6. Replies: 1
    Last Post: 06-02-2010, 01:22 AM
  7. Help needed to create Macros to search and concatenate data.
    By praneybehl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2010, 03:06 AM

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