+ Reply to Thread
Results 1 to 7 of 7

Thread: CONCATENATE equivalent so that A1: A11 to be?

  1. #1
    Registered User
    Join Date
    09-07-2010
    Location
    iran-tehran
    MS-Off Ver
    Excel 2010
    Posts
    6

    Exclamation CONCATENATE equivalent so that A1: A11 to be?

    CONCATENATE command instead of how we command I can use cells A1: A11 I gathered together and certainly the term formula A1: A11 is used
    CONCATENATE equivalent so that A1: A11 to be?

  2. #2
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127

    Re: CONCATENATE equivalent so that A1: A11 to be?

    Hi could you please post an example of what you are trying to do?
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

  3. #3
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: CONCATENATE equivalent so that A1: A11 to be?

    You cannot use CONCATENATE(A1:A11) in excel,. you can use a user defined VBA function.

    If you press ALT and F11, then go to Insert and select Module, then paste this code:

    Function aconcat(a As Variant, Optional sep As String = "") As String
    ' Harlan Grove, Mar 2002
    Dim y As Variant
    
    If TypeOf a Is Range Then
    For Each y In a.Cells
    aconcat = aconcat & y.Value & sep
    Next y
    ElseIf IsArray(a) Then
    For Each y In a
    aconcat = aconcat & y & sep
    Next y
    Else
    aconcat = aconcat & a & sep
    End If
    
    aconcat = Left(aconcat, Len(aconcat) - Len(sep))
    End Function
    then close the window and go back to the Excel sheet and use formula:

    =aconcat(A1:A11)

    Is that what you need?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  4. #4
    Registered User
    Join Date
    09-07-2010
    Location
    iran-tehran
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: CONCATENATE equivalent so that A1: A11 to be?

    No I do not want VBA code. I want to excel with their commands to do this action

  5. #5
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: CONCATENATE equivalent so that A1: A11 to be?

    Then it would be, =CONCATENATE(A1,A2,A3,A4,...,A11)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  6. #6
    Forum Guru contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2010
    Posts
    1,342

    Re: CONCATENATE equivalent so that A1: A11 to be?

    No I do not want VBA code. I want to excel with their commands to do this action
    Why not to use VBA? It's much simpler and faster to achieve your goal. Unfortunately, there is no such a command. Thus you'll need to use CONCATENATE function with many many arguments ... as NBVC stated.
    Last edited by contaminated; 09-07-2010 at 09:52 AM.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, «Born in USSR»
    Vusal M Dadashev

    Baku, Azerbaijan

  7. #7
    Registered User
    Join Date
    09-07-2010
    Location
    iran-tehran
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: CONCATENATE equivalent so that A1: A11 to be?

    This question was raised in a training center. And are asking that Princess VBA coding to solve this question.
    Anyway thank you friends

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0