shorten this formula

lex_m

Board Regular
Joined
Aug 5, 2003
Messages
155
can the formula be shortened
Code:
=AQ51&$AP$49&AQ52&$AP$49&AQ53&$AP$49&AQ54&$AP$49&AQ55&$AP$49&AQ56&$AP$49&AQ57&$AP$49&AQ58&$AP$49&AQ59&$AP$49&AQ60&$AP$49&AQ61&$AP$49&AQ62&$AP$49&AQ63&$AP$49&AQ64&$AP$49&AQ65&$AP$49&AQ66

Thanks this is for excel 2003
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Not with native excel functions, but you could use

Rich (BB 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

Formula

=AConcat(AQ51:AQ66,$AP$49)
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top