Transpose A List Of Data With A Loop

Apr 12, 2007

I have a short problem:

I have a list of addresses on Excel which are all in one column like this:

Mr. XYZ
Roadstreet 2
45000 YXYX
E-Mail
Homepage
Details
Mrs.TTT
Woman street 3
45000 YXYX
E-Mail
Homepage
Details
etc.

The field E-Mail, Homepage, Details contains Hyperlinks

Now I want to transpose this list into different columns like this:

Mr. XYZ Roadstreet 2 45000 YXYX E-Mail Homepage Details
Mrs.TTT Woman street 3 45000 YXYX E-Mail Homepage Details

I have a list of more then 1000 addresses and a macro until the first blank would help.

I have already some ideas but it doesn´t work with the hyperlinks.

View 9 Replies


ADVERTISEMENT

Copy,Paste,Transpose In Loop

Dec 30, 2009

I m new to macro and I need to copy the data from 49 cells value which are

present in Two Rows to be converted into TWO columns and 48 rows

I have run a macro for this and I got



Sub Macro4()
'
' Macro4 Macro
'

'
Sheets("WRIGLEY011209").Select
Range("C1:AX2").Select
Selection.Copy
Sheets("Sheet3").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("A1").Select
Sheets("WRIGLEY011209").Select
Range("A2:B2").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet3").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("A1:B48"), Type:=xlFillDefault
Range("A1:B48").Select
End Sub

View 9 Replies View Related

Copy / Paste / Transpose Loop Between Sheets

Jun 16, 2014

I have a long column of data in column D (D2 to D8761) and I would like to sequentially select 24 cells at a time (D2:D25, D26:D49, D50:D73...D8738:D8761) copy them and paste them to another sheet as separate rows.

For instance, the selected data from Sheet 1, D2:D25, would be pasted/transposed to Sheet 2 B9:Y9. I would like the macro to loop so it would then select D26:D49 and paste/transpose to B10:Y10 and so on until it finishes transposing the final data group of D8738:D8761.

I'll add the macro that I recorded using the brute force method so perhaps you can have a better understanding of what I am trying to accomplish.

Sub Macro5()
'' Macro5 Macro
Range("D2:D25").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Sheet2").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _

[code].....

View 3 Replies View Related

Loop Through Customer List And Go To Sheet And Insert Data

Mar 18, 2014

I have created a excel workbook in which I use for keeping up with storage unit rent. I have a tenant list sheet and each tenant has a sheet on which I keep up with charges and credits. What I want is a macro the will loop thru each tenants sheet based on tenant list and insert data and go to the next sheet. I found this on the web:

[Code] ......

View 1 Replies View Related

Transpose Vertical List From Listbox

Jun 29, 2009

I am traying to make a horizontal list on sheet2 from a listbox on a userform ...

View 12 Replies View Related

VBA Macro To Transpose List To A Row On Different Sheet

Mar 21, 2014

I have the below VBA but am getting a 1004 error and when I step into each line I do not see the macro populating the cells as designed. The purpose of the macro is to take a list from the "EmployeeBillableHours" worksheet select the entire list s.tarting from row 2, then goto to "Client" worksheet, then starting at cell J6 paste each item on the list and then move 4 cells to the right and paste the next item on the list to the end.

Code:
Sub ClientListtoClientTab()
Dim lr As Long: lr = Worksheets("EmployeeBillableHours").Range("H" & Rows.Count).End(xlUp).Row

[Code].....

View 1 Replies View Related

Transpose Variable Length List Of Entries

Dec 12, 2012

My key is in row A (up to 50,000 keys) my entries are in column B. There could be between 1 to 20 entries per key (variable). i need to move the entries across so my key remains in column A and the entries appear in columns B, C, D, etc. Need to end with one row per key.

from this:

823
car

pool

window

345
pen

123
pen

[code].....

View 2 Replies View Related

Transpose Named Range For Combo Box List

May 29, 2006

I have been trying to make a combobox for which the list is a named range. However, this range needs to be transposed. ListFillRange doesn't seem to let me transpose the list first. I've tried transposing the list somewhere else first and then adding it, but it seems to want a range as opposed to a reference to a range. I'm so confused now. This is the basic code that I wish would work.

ActiveSheet. OLEObjects.Add(ClassType:="Forms.ComboBox.1", Link:=False, _
DisplayAsIcon:=False, Left:=253, Top:=472, Width:=117, Height:=20). _
Select
Selection.ListFillRange = "=transpose(Stream_Data!StreamList)"

While I'm at it, could someone explain to be how to refer to a combobox. ie. when you create it, you don't name it so how can you refer to it. That's why I have used the selection tool above to add the list.

View 3 Replies View Related

List All Sheets Names From Multiple Workbooks & Copy Transpose Certain Columns

Oct 7, 2009

this may or may not be easy for some of you but its driving me nuts. Here's what I need to do.

1.Create a new workbook

2.Cycle through multiple workbooks and all worksheets within each workbook (all in the same folder). All workbooks will have the same structure.

3.Take the worksheet names and put them in rows

4.Take the data from the first column (column A) from the first worksheet of the first workbook and put them across the top (i.e. transpose the data). The first column will be the same in all workbooks so it doesn't matter where I get it from.

5.Copy the data from column E from each worksheet and paste them in rows in the new workbook (again transpose) corresponding to each worksheet.

6. Perform simple mathematical calculations at the end of each row.

I expect to have approximately 26 workbooks with a total of 7000 worksheets. In the target workbook (i.e. the new one), I expect there to be 7000 rows (corresponding to the 7000 worksheets) and about 260 columns.

The only reason I need to transpose stuff is because Excel 2007 doesn't have 7000 columns.

Here's an example of what it would look like.
Example worksheet (Input)-
Worksheet ABC
Col A Col E
1/1/2004 $25
1/8/2004 $30
1/15/2004 $15

Imagine another worksheet called LMN with the same ColA but different values in Col E.

Output workbook
ColA Columns B Column C Column D
Sheet 1/1/2004 1/8/ 2004 1/15/2004
ABC $25 $30 $15
LMN $xxx $yyy $zzz

View 7 Replies View Related

Macro To Transpose Multiple Data In Cell Separated By Commas To Each Data In Column

Jul 15, 2014

I have a table in the format below with about 3500 rows

Column A
Column B

0001
All vehicles, Retirements

0002
All vehicles, Retirements, Addition

0003
All vehicles, Retirements, Addition, Deletion from Y

I would like to change it to the following format:

Column A
Column B

0001
All vehicles

0001
Retirements

0002
All vehicles

0002
Retirements

0002
Addition

0003
All vehicles

0003
Retirements

0003
Addition

0003
Deletion from Y

View 3 Replies View Related

Transpose Or Convert Rows Of Data Into Columns Of Data:

Feb 12, 2009

When I was using Excel 2000, there was an Excel add-in where I could highlight rows of information and then transpose these into columns of information. Since we have upgraded to Excel 2003, the same Excel add-in does not work and I have not been able to find a simple solution to transpose my information from a horizontal view to a vertical view or the reverse.

Or do I just have to move 53 columns (weeks) of 4 rows one cell at a time to 4 columns of 53 rows (weeks)?

View 3 Replies View Related

Transpose Repeated Data With Unique Associated Data Across Columns

Jan 17, 2008

Is it possible to associate a range of cells containing different information based on like values in other cells?

Example:

How it currently appears in spreadsheet

Name Acct#
John Q. Public 12345
John Q. Public 23456
John Q. Public 34567
John Q. Public 45678
Jane Example 11111
Jane Example 22222

Wanted Result

John Q. Public 12345 23456 34567 45678
John Q. Public 12345 23456 34567 45678
John Q. Public 12345 23456 34567 45678
John Q. Public 12345 23456 34567 45678
Jane Example 11111 22222
Jane Example 11111 22222

I know how to remove the duplicates afterwords to get one unique record.

View 4 Replies View Related

How To Transpose All Data

Jul 3, 2014

in transposing all data, I have data in the format below:

Material ID | Attribute Name | Attribute Value |
MaterialNo.123 | Color | Red |
MaterialNo.123 | Color | Cherry Red |
MaterialNo.123 | Color | Sunset Red |

I want to transpose it to show:

Color Color Color
MaterialNo.123 | Red | Cherry Red | Sunset Red |

View 2 Replies View Related

Transpose Data From Column To Row

Dec 8, 2013

I need to transpose column data (Sheet called "Recpt") into rows (sheet called "Formula")

Please refer to attached excel file,sheet "Formula". I have manually entered formula for 12/1/2013. Need to add formula for the rest of the sheet. Since the data is on every 4th column, I am sure it is feasible to copy the formula by adding 4th columns.

View 3 Replies View Related

Automate Transpose Of Data?

Feb 13, 2014

AUTOMATE TRANSPOSE 2-13-14.xlsx In the attached file, I am looking to automate the transposing of the date and numbers under each bold number. Data is truck # in bold, the engine oil change date and mileage below. I copied the data from a pivot and need the date and mileage in columns, date on top with mileage below. I can do it with paste special one truck at a time, the big chunk of data is about 2000 rows deep and was hoping the transpose paste special could be automated, I've made a few attempts on how to do it but can't get it.

View 6 Replies View Related

Transpose Data From 1 Sheet To Another

Feb 19, 2014

I am working on a spreadsheet that has (7) sheets or (7) tabs. The First tab is the "Summary Tab" and the 3rd tab is the "Plate" tab. I am working in a range of cells that go up and down on the "Summary Tab" and I need to fill them with the values from the "Plate Tab" that goes side to side or across. I can enter into the top cell on the "Summary Tab": =Plate!B47 and I will get the value that I need. However, I want to copy the formula or fill down and have it pull the values from the cells on the "Plate Tab" Horizontally like this (as I fill down) =Plate!_$47 Where the "_" changes to "C", "D", "E", etc.... but it stays on row 47!!!! How can I do this????

View 5 Replies View Related

Dynamically Transpose Data

Jul 11, 2008

I have a list of about 3,000 names and places of work, in two columns. What I want is to have the place of work in the first column, and then all the employees along that row.

There must be a simple solution to this, but I have been banging my head on my desk all morning trying to work it out. All the places of work are sorted, if that makes any difference.

View 14 Replies View Related

Transpose Several Columns Of Data

Aug 26, 2009

I'm working on this project that I inherited from another colleague and am at a sticking point. The workbook is used to determine which employees are working on which projects what pct of the time. The workbook was set up using a start and end date (columns e and f) for the projects instead of a column with the month and the correct percentage. I've set up monthly columns, which are now in columns K through AF. I believe that I need to transpose those columns into a row so that I can set up a pivot table.

View 5 Replies View Related

Macro To Transpose Data?

Jun 7, 2014

I need macro to transpose the raw data I have extracted from a Biometrics file into the format I need to compute for work hours.

Sheet 1(raw data)

Sheet 2 ( format i want the data to look like)

View 3 Replies View Related

Transpose Column Data To A Row?

Aug 19, 2014

I've got a workbook called MyBook1 which has 12 groups of 5 columns representing each calendar month. I am looking to create a macro (one for each month) which will be executed from another workbook. This macro will pull a column of data from a workbook called Data1 and paste into a row in the MyBook1 workbook.

Using the macro recorder, I've got the following code that works great but was trying to shorten the code and get it to work from another workbook but haven't been successful. I believe all that needs to be done is create a variable for the source/destination workbooks then set the selections and do the copy/paste but I'm having a hard time finding example macros which I can learn from.

Working code below for January, for Febuary the Data1 range is D2:D6, and the destination is 5 columns over making it M3. Then just follow the code below as a template.

[Code].....

View 11 Replies View Related

Transpose Data Of Different Lengths

Aug 19, 2014

I have a performance extract from a system which has performance for multiple accounts but the data is off different lengths and shown vertically. I wish to move the data onto a new sheet but rotated(transposed) horizontally

Attached is a snapshot of the report that is usually about 20,000 lines. See input and output tabs.

Is there any way that a macro could be created to do this.

Performance.xlsx

View 3 Replies View Related

VB Code To Transpose Data

Mar 26, 2014

Please refer to attached file.

I have employee Clock IN - Clock Out as shown in Column A thru C. An employee can have more then 1 Clock In Clock Out as shown for Employee Name Karmen and Haley.

As shown, each employee is separated by "----------------------" and it ends with "REPORT END"

I would like a VB Code to transpose the data as shown in Column G thru H ...

View 2 Replies View Related

Macro To Transpose Data

Feb 9, 2009

I have data that gets dumped from a program into a nasty horizontal format that I need to get transposed into a verticle format. As it stands now, the info is reported with hourly data spread accross rows. I need the hourly data in one column. See attached sheet for an example of what I need done with the data. I'm looking for a macro to take my "original" sheet and create my "new" sheet. Note: a macro that can do this would save me days of time.

View 4 Replies View Related

Rearrange And Transpose Data

Oct 18, 2009

I need a macro to manipulate some data. The attached example contains more details.

View 2 Replies View Related

VBA - Formula To Transpose Data

Jan 29, 2012

I would like to transpose the data below Columns( A & B).GroupPersonAA1AA2AA3AA4BB1BB2BB3CC1CC2

To this format on Sheet2 Starting in A1.

ABCA1B1C1A2B2C2A3B3A4

View 7 Replies View Related

Transpose Data From One Sheet To Another

Jun 21, 2012

I need the following data transposed to the next sheet in this formatClaims

Assessor:
Claim ID:
Quality Checker:
Q/Assessment Date:
Correct Member
Correct Payee
Correct re-imbursement address
Correct amount & currency

[Code]...

where score denoted the marks achieved. with the code for the same.

Claims Assessor:
abc
Quality Checker:
xyz
Claim ID:
165663
Q/Assessment Date:
21-06-2012

[Code]....

View 3 Replies View Related

Copy And Transpose Data Using VBA

Dec 10, 2003

I have a set range of 21 rows, and the data in column A.

how can i tell the vba to look at cell A1:A21, copy the data, and past special transpose it onto Sheet2 starting with A1:U1

then for cells A22:A42, copy and paste special transpose onto Sheet2 A2:U2 and follow this procesure down the length of the entire sheet.

View 9 Replies View Related

Macro To Transpose Data

Oct 14, 2013

I want to transpose my data. Please see excel file. The original data is of 5 persons (in column) and working hours are recorded over the 35 days (day 1 to day 35 in rows). There are 35 entries for each persons.

I want to do a longitudinal analysis. So I want to transpose data in such a way that each person is repeated 35 time one column, with day in next column (1-35), and working hours are give in front;

For detail see attached excel sheet.

Original table

ID
D1
D2
D3
D4
D5
D6
D7

[Code] ...........

Want to make below table

ID
Day
Hour

1
1
2

[Code] .......

View 2 Replies View Related

Transpose Data Via Macro

Jan 29, 2014

Have been stuck on an interesting issue I currently have data as set out in the table below.

name
ID
course 1
course 2
course 3
course 4

[Code]....

I need the course list to be restructured such as this below. I have tried using a vlookup with extra bits and a pivot table but cannot achieve what i am after, was thinking maybe a macro that could transpose each row as it drops down but not sure where to begin on that one.

steve
course 1
100
steve
course 2
94

[Code]...

View 3 Replies View Related

Transpose Data From Column To Row

Aug 10, 2007

The following data is in column A:

Adam
Mobile 19171234854
Work 19171234854

Adele
Mobile 9171234854
Home 2121234567

Adrian Simpson
Mobile 19171234854

I would like to move the data to rows with the appropriate headers:
NameMobileWorkHome
Adam1917123485419171234854
Adele9171234854 2121234567
Adrian Simpson19171234854

As you can see, some of the phone numbers start with 1 and some don't. The listings may or may not include mobile, work, and home phones.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved