+ Reply to Thread
Results 1 to 5 of 5

duplicate values in 1 column combined into another column

  1. #1
    Registered User
    Join Date
    02-10-2020
    Location
    Seymour, Indiana
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    2

    duplicate values in 1 column combined into another column

    In the attachment I have duplicate values in Column A with different values in Column B. What I'm looking for is to combine the different values from Column B into 1 cell in column C. The attachment shows what result I'm looking for in Column C.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: duplicate values in 1 column combined into another column

    Hi LAB:

    I searched Dr. Google and came up with this result that might help you. It uses a UDF and appears to handle what you're looking for.

    You might explore it, adjust your ranges. Doesn't look too messy.

    https://www.get-digital-help.com/exc...into-one-cell/

    Pete

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: duplicate values in 1 column combined into another column

    In C2 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    02-10-2020
    Location
    Seymour, Indiana
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    2

    Re: duplicate values in 1 column combined into another column

    No it gave me the #NAME? result.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: duplicate values in 1 column combined into another column

    TEXTJOIN isn't available in Office 2016 or older. That's why the NAME? error.

    You can distribute the resulting 'User ID's' across some columns and then concatenate them by brute force in column C or you can use a user defined function (VBA).

    In the attached I've done both.
    1st Sheet1; in D2 filled across and down as far as needed this distributes the IDs by their 'Task Numbers'.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then concatenate them as described in C2 and filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    On Sheet2 this UDF by tigeravatar has been installed.

    The formula in C2 must be array entered.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    This formula does what TEXTJOIN does.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Please Login or Register  to view this content.
    1. Copy code
    2. Press Alt and F11 on your keyboard to open VB Editor
    3. Click on Insert and select Module
    4. Paste code into Module and close VB Editor.

    Don't forget to save your worbook as Macro-Enabled workbook. (Done)
    Dave

+ 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] Total values in one column based on duplicate copies in another column
    By grim72 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-19-2018, 02:31 PM
  2. Combine data in column B if column A has duplicate values
    By oneillp1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2017, 10:07 AM
  3. 2-Column List of Unique Distinct COMBINED Values
    By probladerunner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2016, 09:05 PM
  4. Remove rows with duplicate values in one column based on value of another column
    By jolleyje in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2013, 06:20 AM
  5. Combined data from multiple rows if column contains a duplicate value
    By ALexcell47 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-04-2013, 05:37 PM
  6. Replies: 3
    Last Post: 02-12-2013, 03:09 PM
  7. Macro to Sum up values in column F, as per duplicate cells in column C
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2011, 06:53 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