+ Reply to Thread
Results 1 to 15 of 15

CONCAT multiple values

  1. #1
    Registered User
    Join Date
    06-08-2018
    Location
    California, US
    MS-Off Ver
    Excel 2016
    Posts
    3

    Question CONCAT multiple values

    Hi!


    I'm new to this forum, but hoping I can get some help.

    Basically, I have two columns of data with corresponding value. Column A contains names of movies, and can contain duplicates, and Column F contains corresponding string values that are unique within the column. All duplicate values in Column A are in consecutive rows. So basically my goal here is to get the application to cycle through the values in Column A, starting in Cell A2, and return the value in column B. However, if the values in cell A2 and A3 (and A4 and A5, etc.) are the same, I want it to return the concatenated version of the values in cell F2, F3, F4, F5...so and so forth. I've attached a screenshot of what I've been able to do so far.

    As of now, I've identified the duplicates (which isn't pertinent to the formula, I know, but just for checking later), and have a formula that will allow me to concatenate upto 2 duplicates together. I'm not sure how to set it up so that it automatically cycles through and concatenates as many values as necessary. is this something I need to write a macro for?! Because I'm a VBA noob and that feels overwhelming. But if I had to, would a For Next loop function work in this case?
    Formula i'm using is this: =IF(A8=A9,(CONCAT(F8,", ",F9)))

    Screenshot:
    Screen Shot 2018-06-08 at 8.58.12 AM.png

    Thanks! Appreciate any and all help.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: CONCAT multiple values

    Can you upload sample workbook?

    You can attach file by using "Go Advanced" button found at bottom right of Quick Reply/Edit menu. Then locate "Manage attachments" hyperlink and click on it. It will launch new tab/window.

    Since you have Excel 2016, your best option is to use PowerQuery (Get & Transform). If you have Office 365 subscription you could use TextJoin function.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    06-08-2018
    Location
    California, US
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: CONCAT multiple values

    Here you go!
    Attached Files Attached Files

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

    Cool Re: CONCAT multiple values

    is that what you want?

    done with PowerQuery aka Get&Trnsform
    Attached Files Attached Files

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

    Re: CONCAT multiple values

    if you've any question I'll be later but all what you need is in PowerQuery Editor on the right side (steps)

    If that takes care of your original question, & to say Thanks and for better Motivation, please
    1. click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
      then
    2. select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it already - ignore it.
    Thank you.

  6. #6
    Registered User
    Join Date
    06-08-2018
    Location
    California, US
    MS-Off Ver
    Excel 2016
    Posts
    3

    Re: CONCAT multiple values

    My only question is how did you do that? I have to do this multiple times and just want to understand.

    Thank you so much!!! YOU ARE THE BEST.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: CONCAT multiple values

    Here is a formula solution
    Formula to get unique list from Column A.
    Enter in C2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    then enter formula in D2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    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,647

    Re: CONCAT multiple values

    TEXTJOIN is only available in the Office 365 subscription version.
    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.

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: CONCAT multiple values

    In his original post OP is using CONCAT function so the OP also has TEXTJOIN.
    Last edited by AliGW; 06-08-2018 at 01:08 PM. Reason: Unnecessary quotation removed.

  10. #10
    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,647

    Re: CONCAT multiple values

    Apologies - you are right. Both are available in the Excel 2016 version also.

  11. #11
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: CONCAT multiple values

    Post deleted as question is already resolved.
    Last edited by sktneer; 06-08-2018 at 01:38 PM.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: CONCAT multiple values

    Both are available in the Excel 2016 version also.
    Just FYI, neither TEXTJOIN nor CONCAT are available in Excel 2016 without a 365 subscription.

  13. #13
    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,647

    Re: CONCAT multiple values

    Yes, that's what I thought originally ...

    I have just read the pages again and it is only the subscription version, as I thought to begin with. I mentioned it earlier because the OP's profile says Excel 2016, not specifically 365 subscription.
    Last edited by AliGW; 06-08-2018 at 01:56 PM.

  14. #14
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: CONCAT multiple values

    I'm not sure why it says that. That's odd...

    I have Excel 2016 and do not have TEXTJOIN or CONCAT.

  15. #15
    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,647

    Re: CONCAT multiple values

    A little lower down it mentions the 365 subscription caveat. I was getting my knickers in a twist because of what Alkey said in post #9 and the OP's profile. My mistake!

+ 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] concat values and count values for each specific id
    By soli004 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-08-2018, 06:13 AM
  2. [SOLVED] Macro concat cell contents and varying text/values
    By btham in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2017, 10:12 PM
  3. Replies: 0
    Last Post: 06-05-2014, 10:45 AM
  4. How to Concat Multiple Listbox Selections?
    By AccessGeek in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-23-2011, 11:30 AM
  5. Re: Concat values in two or more rows based on id and eliminateduplicates
    By Dave Peterson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2005, 02:05 PM
  6. [SOLVED] Re: Concat values in two or more rows based on id and eliminate duplicates
    By Tom Ogilvy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2005, 02:05 PM
  7. Concat Variant Values
    By br_turnbull in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2005, 07:05 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