• Concatenation Function Question (Excel 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Concatenation Function Question (Excel 2003)

    Author
    Topic
    #425592

    I have information in 4 cells. Need to a concatenation formula in E1.

    Cell A1 Gates
    Cell B1 Bill
    Cell C1 VP
    Cell D1 Rochester

    I need a formula in cell E1. Want E1 to say – Bill Gates VP, Rochester

    What is the best formula.

    Thanks in advance………

    Viewing 1 reply thread
    Author
    Replies
    • #980927

      =B1&” “&a1&” “&c1&”, “&d1

      Steve

    • #980941

      Alternatively:

      =CONCATENATE(B1,” “,A1,” “,C1,”,”,D1)

      • #980997

        whisper I hate that function. It is difficult to spell. Also, unlike the SUM function, which can take values individually or as a range, concatenate can not be used to concatenate a range. The each must be entered individually, which makes it not much of an improvement over using “&”.

        Steve

        • #981106

          whisper I agree, but I like to provide options . I do your option a lot of the time, but I am not very good at tpying so the function allows users to go through the Function Argument Wizard.

          • #981108

            >>> but I am not very good at tpying (I can see that!!!! – evilgrin)

        • #981107

          Steve…you are famous for creating new functions. You assisted me multiple times with customised VLookups etc!! How about creating a CONCATENATE_RANGE() function. smile

          • #981110

            I’m not Steve, but here is such a function:

            Public Function Concatenate_Range( _
            oRange As Range, _
            Optional strSeparator As String) As String
            Dim ocell As Range
            For Each ocell In oRange.Cells
            Concatenate_Range = Concatenate_Range & strSeparator & ocell.Value
            Next ocell
            Concatenate_Range = Mid(Concatenate_Range, Len(strSeparator) + 1)
            Set ocell = Nothing
            End Function

            Use like this:

            =Concatenate_Range(A1:A10)

            or

            =Concatenate_Range(A1:A10,", ")

            If you put the functiion in your Personal.xls, you must use Personal.xls!Concatenate_Range.

            • #981111

              Absolutely stunning Hans. It works like a dream.
              Great example!
              thumbup

          • #981114

            I see Hans had already created one.

            I actually have a similar one already in my Personal.xls file. I called it “Grouper”, since it is shorter than something “Concatenete_Range”.

            rantonIt is a peeve to me that:
            “+” is akin to “&” for adding numbers/strings.

            Also SUM(A1,A2,A3) is akin to concatentat(A1,A2,A3) for doing the same

            But:
            SUM(A1:A3) works to sum the range, but concatentat(A1:A3) does not work to concatenate the range

            It is just one of the things about XL that does not make sense to me… rantoff

            Steve

            • #981116

              It sound as if you have some pretty nifty (secret) functions floating around in your Personal.xls file. Are there any more in there that you care sharing?
              I respect your privacy though! smile

            • #981118

              As with most people, I have specific ones for task as well as one’s I create for various reasons. Some I create just to post here and never save as I have no use for them. Some I have created for one purpose and never use it again

              if there is something you need, we will gladly try to provide them. Any particular requests?

              Steve

            • #981125

              No immediate requests currently (tx for the offer!), except this:
              A function that will transport me to work and back home without having to fight the rush-hour traffic will do just great. Is Excel capable of that? shrug

              cheers

            • #981130

              No

            • #981131

              You will have to wait for Excel 2371 and install the Scotty.xla add-in. It will contain a BEAM_ME_UP function.

            • #981132

              Not directly, but it does have the following useful abilities:
              1. It works over VPN, so you don’t have to go to work at all.
              2. If you enter “I quit” in cell A1 and then use the mailto ability, you don’t have to worry about traffic! grin

            • #981144

              rofl
              Cheers rory and Hans.

    Viewing 1 reply thread
    Reply To: Concatenation Function Question (Excel 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: