Hi guys,
I have this excel extract a huge document. I need to either delete the date or move everything to one line so that its in this order Date Name Text. Is there any way I can do this easly?
Name
Date
Text
Hi guys,
I have this excel extract a huge document. I need to either delete the date or move everything to one line so that its in this order Date Name Text. Is there any way I can do this easly?
Name
Date
Text
Hi, jusciusr,
if all your data is in Column A and starts with Row 1 and each item is only one cell (no blanks) you could use a formula as well as VBA-Code:
This code will write the data starting at Column E. Please test the code on a copy of the original workbook.![]()
Sub ReWriteData() Dim lngLast As Long Dim lngCounter As Long Dim lngTarg As Long Dim lngCol As Long Const cstrCol As String = "A" Const clngTarg As Long = 4 lngLast = Cells(Rows.Count, cstrCol).End(xlUp).Row lngTarg = 1 lngCol = clngTarg For lngCounter = 1 To lngLast lngCol = lngCol + 1 Cells(lngTarg, lngCol).Value = Cells(lngCounter, cstrCol) If lngCounter Mod 3 = 0 Then lngCol = clngTarg lngTarg = lngTarg + 1 End If Next lngCounter End Sub
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks