Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it all of a standard layout, that is customer name, say 5 lines of notes?
If so this should do it Sub Test() Dim iLastRow As Long Dim i As Long Dim rng As Range Const nBlock As Long = 5 '<=== change to suit iLastRow = Cells(Rows.Count, "A").End(xlUp).Row If iLastRow Mod nBlock < 0 Then iLastRow = iLastRow + nBlock - iLastRow Mod 5 End If For i = iLastRow - 4 To 1 Step -nBlock Cells(i, "B").Value = Cells(i + 1, "A").Value Cells(i, "C").Value = Cells(i + 2, "A").Value Cells(i, "D").Value = Cells(i + 3, "A").Value Cells(i, "E").Value = Cells(i + 4, "A").Value If rng Is Nothing Then Set rng = Rows(i + 1).Resize(4) Else Set rng = Union(rng, Rows(i + 1).Resize(4)) End If Next i If Not rng Is Nothing Then rng.Delete End Sub -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Helpless1" wrote in message ... HELP! I am a very minimal user and have a huge annoying project that I keep wondering if there is an easier way to accomplish. I am doing conversion work and have about 29000 lines left of customer information. When the info from our old system was imported the customer notes were inserted in a new cell with every line of text. My current method is to filter by customer number then concatenate every line of customer notes, then copy and paste special as values. I then delete the other lines of text and move to the next customer number. PLEASE tell me there is any easier way! Restore my sanity! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with concatenate | Excel Worksheet Functions | |||
concatenate and then take off last # | Excel Discussion (Misc queries) | |||
I know how to concatenate ,can one de-concatenate to split date? | New Users to Excel | |||
CONCATENATE-1 | Excel Programming | |||
CONCATENATE-1 | Excel Programming |