+ Reply to Thread
Results 1 to 4 of 4

Return unique values from one column and Concatenate corresponding values from another

  1. #1
    Registered User
    Join Date
    04-25-2019
    Location
    canada
    MS-Off Ver
    365
    Posts
    45

    Return unique values from one column and Concatenate corresponding values from another

    Hello,
    Could you please help me with the formula that will return unique values from column A while concatenating corresponding values from column B as below:

    concat.JPG

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Return unique values from one column and Concatenate corresponding values from anothe

    With Power Pivot.
    1. Highlight your source data.
    2. Click on I nsert
    3. Select Pivot Table
    4. Make sure to select the box "Add to Data Model"
    5. Select where you want your output
    6. In the Pivot Table Fields, put "Letters " in the Rows
    7. Right click on the Range and select Add a measure
    8. Give the measure a name.
    9. In the forumula area type:=CONCATENATEX(Range,Range[Numbers],", ")
    10. Select your newly named measure and drag it to the Values

    Excel 2016 (Windows) 32 bit
    A
    B
    3
    Letters NewNum
    4
    ABC 4, 2, 5
    5
    CDE
    2
    6
    DWW 7, 9
    Sheet: Sheet2
    Attached Images Attached Images
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-25-2019
    Location
    canada
    MS-Off Ver
    365
    Posts
    45

    Re: Return unique values from one column and Concatenate corresponding values from anothe

    works great! Thank you

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,382

    Re: Return unique values from one column and Concatenate corresponding values from anothe

    Still PQ is simple, here is copyled, so only to look
    Attached Images Attached Images

+ 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] Formula to return unique values in a column
    By MyStix01 in forum Excel General
    Replies: 8
    Last Post: 11-27-2018, 10:09 AM
  2. [SOLVED] vba to concatenate data and return multiples values from unique list
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-30-2017, 11:27 AM
  3. Return Multiple Unique Values In A Column
    By Justair07 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2016, 01:17 PM
  4. return unique values from column B in various sheets
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 10-02-2015, 05:53 PM
  5. if find values in column then concatenate unique values
    By alexcrofut in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2014, 12:24 PM
  6. Return number of unique values based on values in other column
    By Medir in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-26-2013, 11:17 AM
  7. [SOLVED] Return unique values based on another column's value
    By bd528 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-26-2013, 04:02 AM

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