ststern45
Well-known Member
- Joined
- Sep 17, 2005
- Messages
- 974
- Office Version
- 365
- 2010
- Platform
- Windows
Hello everyone,
Excel 2010 version of Excel
I searched and found the following code at "Extendoffice". See Below
It does everything required but the formula will not add leading zero (if required) in the concatenated set of 4 digit values from 0 through 9 even if I format the cells as "0000".
Each cell range contains 16 cells.
Each cell range can only contain 4 digits 0 through 9 and they can repeat.
Thank you in advance!!
Function Concatenatecells(ConcatArea As Range) As String
'updateby Extendoffice
For Each n In ConcatArea: nn = IIf(n = "", nn & "", nn & n & ""): Next
Concatenatecells = Left(nn, Len(nn) - 1)
End Function
Excel 2010 version of Excel
I searched and found the following code at "Extendoffice". See Below
It does everything required but the formula will not add leading zero (if required) in the concatenated set of 4 digit values from 0 through 9 even if I format the cells as "0000".
Each cell range contains 16 cells.
Each cell range can only contain 4 digits 0 through 9 and they can repeat.
Thank you in advance!!
Function Concatenatecells(ConcatArea As Range) As String
'updateby Extendoffice
For Each n In ConcatArea: nn = IIf(n = "", nn & "", nn & n & ""): Next
Concatenatecells = Left(nn, Len(nn) - 1)
End Function