+ Reply to Thread
Results 1 to 5 of 5

Howto concatenate Array values

  1. #1
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Howto concatenate Array values

    I often run into a problem where values within an array need to be concatenated:

    When I have an Array function e.g. =IF($A$2:$A$4=$A2;$B$2:$B$4;0)
    I want all Array values concatenated:

    Say result of IF function = {"A";"B";0} it will only show element index(1,1)="A"

    in this example: A1=1, A2=1, A3=2, B1=A, B2=B, B3=C
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    There is no inbuilt function which allows you to concatenate an array.

    You can install morefunc add-in and use MCONCAT function, or use VBA, try googling ACONCAT+harlan grove

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Howto concatenate Array values

    Daddy,

    Thanks for the reply. Is there a "work around". You must have encountered the same problem. Having a special add-in will make it work, but is not very handy in general as most will not have this installed.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The workaround would be to put the individual results in separate cells, then, if you must, you concatenate those results into one cell using Concat() or "&"
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Howto concatenate Array values

    NBVC.

    Thats exactly what I'm doing at the moment. Its'OK for an array of 4 elemenst, but for 10+ ... I just wanted to know if there was a way. I'll stick to the old method. THX all.

+ 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. Replies: 9
    Last Post: 06-06-2009, 12:09 PM
  2. Problem assigning my Array values to rows
    By Edoloto in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2008, 08:14 PM
  3. unable to set y values with an array
    By tamushrek in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 08-11-2008, 11:58 AM
  4. Copy Range to array Rounds Values?
    By additude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2008, 08:49 AM
  5. List of unique values from an array
    By scubohuntr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2008, 06:05 PM

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