Hello Experts,
I have contact details list in Column A and I want to transpose the contact in specific columns, every line with next line no gape between the lines, please check the screenshots.
Thanks in advance
Farhan
Hello Experts,
I have contact details list in Column A and I want to transpose the contact in specific columns, every line with next line no gape between the lines, please check the screenshots.
Thanks in advance
Farhan
Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.
Remember to desensitize the data.
Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
My General Rules if you want my help. Not aimed at any person in particular:
1. Please Make Requests not demands, none of us get paid here.
2. Check back on your post regularly. I will not return to a post after 4 days.
If it is not important to you then it definitely is not important to me.
Excel File
Try this...
![]()
Sub TrnasposeData() Dim lr As Long, i As Long Application.ScreenUpdating = False lr = Cells(Rows.Count, 1).End(xlUp).Row For i = 3 To lr Step 5 Range("A" & i).Resize(5).Copy Range("B" & Rows.Count).End(3)(2).PasteSpecial xlPasteAll, Transpose:=True Range("A" & i).Resize(5).Clear Next i Application.CutCopyMode = 0 Application.ScreenUpdating = True End Sub
Regards
sktneer
Treat people the way you want to be treated. Talk to people the way you want to be talked to.
Respect is earned NOT given.
Hi Sktneer,
Thanks for reply, I don't want to remove column A Data
Paste this formula into B3
Fill right
Fill down until you get a line of zeros.
Formula:
=INDEX($A:$A,(ROW()-2)*5-2+COLUMN()-2,1)
Or fill this formula down until you get blank lines.
![]()
=IF(INDEX($A:$A,(ROW()-2)*5-2+COLUMN()-2,1)=0,"",INDEX($A:$A,(ROW()-2)*5-2+COLUMN()-2,1))
Last edited by mehmetcik; 07-25-2017 at 02:49 PM.
Then remove the following line from the code.
![]()
Range("A" & i).Resize(5).Clear
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks