Hi There,
I currently have basic code to concatenate a range of 6 coloumns in order to sort 6 keys rather than the limited 3 of excel 2003. The code is -
'Concatenate AC, CCC, WBS, Fund, IO and ID to sort all 6 keys rather than 3
All of the cells are numerical, with the exception of (i, 4) which can be a combo of numbers, text and symbols, and I beleive that instead of creating one large number Excel is trying to run a calculation and the end result is coming out weird.
An example of this is:
21309 213360 70269 8577672 2.13092E+22
21309 213360 70269 5877672 2.13092E+22
21309 214210 8555632 2.13092E+17
I need the result to be 21309213360702698577672 (text) instead of 2.13092E+22 (numerical), longer or shorter depending on whether cells are blank or not.
Can anyone please help?
Thank you in advance,
I currently have basic code to concatenate a range of 6 coloumns in order to sort 6 keys rather than the limited 3 of excel 2003. The code is -
'Concatenate AC, CCC, WBS, Fund, IO and ID to sort all 6 keys rather than 3
Code:
Dim lRow As Long
lRow = Range("A" & Rows.Count).End(xlUp).Row
For i = 3 To lRow
Cells(i, 15) = Cells(i, 2) & Cells(i, 3) & Cells(i, 4) & Cells(i, 5) & Cells(i, 6) & Cells(i, 9)
Next i
An example of this is:
21309 213360 70269 8577672 2.13092E+22
21309 213360 70269 5877672 2.13092E+22
21309 214210 8555632 2.13092E+17
I need the result to be 21309213360702698577672 (text) instead of 2.13092E+22 (numerical), longer or shorter depending on whether cells are blank or not.
Can anyone please help?
Thank you in advance,