Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It is highly unlikely thet the data in 3000 cells will fitin one, but here
is the general principle Sub Concat()Dim tgtrng As Range Dim cell As Range Dim tmp As String For Each cell In Selection If Not cell.Value = "" Then tmp = tmp & cell.Value & "," Next cell If tmp < "" Then range("A1").Value = Left(tmp, Len(tmp) - 1) End Sub -- --- HTH Bob (change the xxxx to gmail if mailing direct) "Cassie" wrote in message ... I need to combine about 3000 lines of numbers into a single cell, separated by a ";". Is there a quick way to do this without having to type each of the 3000 cells into the formula? Thanks for any help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Concatenate Data inn different columns | Excel Discussion (Misc queries) | |||
How can I concatenate a number and preserve the formatting? | Excel Worksheet Functions | |||
Concatenate Function | Excel Discussion (Misc queries) | |||
Concatenate | Excel Discussion (Misc queries) | |||
Concatenate cells without specifying/writing cell address individually | Excel Discussion (Misc queries) |