Is It Possible To Repeat A Transpose Paste Special
Sep 12, 2009
I have over 300 lines of data that I need to transpose from columns to rows and I am not sure the best way to do it.
I can do it manually 125 times using paste special and transpose and get the results I need but I am thinking there must be a better way.
Example spread sheet inclosed. Column A is what I have - Column C-F is what I need.
View 8 Replies
ADVERTISEMENT
Jan 29, 2014
I would like to implement specific cell ranges from two specific worksheets each within 33 workbooks (which all have several tabs) into a summary page in a separate workbook.
The cell ranges are going across my spreadsheet in rows and I would like for them to transpose into a columns depending on the data which I have separated by catergory on the summary page. They are all on the same location in each workbook which is separated by country. The cell ranges are E26:P37 and I would like to transpose them and have them put below eachother without overwriting for my format on the summary page, how I can put this together in a macro?
View 1 Replies
View Related
Apr 23, 2009
I have two excel tabs on a spreadsheet, one titled "Reviews" and one titled "Details". On my Reviews tab, I have:
A B C D
1 0 0 1
0 0 0 0
1 1 1 1
. . . .
. . . .
etc.. On my Details tab, I have
A 1 0 1 . . .
B 0 0 1 . . .
C 0 0 1 . . .
D 1 0 1 . . .
(The same information, but presented in different ways). I'm trying to continue to make my Reviews tab as long as possible to match my Details tab but when I drag the cross to continue the pattern, it doesn't follow what I need it to. How can I continue my Review tab down for 600 or so fields to match my Details tab even though they are both in different layouts?
View 14 Replies
View Related
Jan 24, 2008
Is there a simple way to combine Paste Link and the Paste Transpose function? I receive a lot of data in rows that I need to put in columns for display purposes. Using transpose is great for doing that but I would like to link it using paste link so I don't have to keep doing each time the data changes. I have recorded macros to see what is happening when I perform the operations seperately as shown below but have been unable to combine them.
Range("A44").Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
' need to combine with this
Range("A44").Select
ActiveSheet.Paste Link:=True
View 7 Replies
View Related
May 21, 2008
How to make a short cut or hot key to do a paste special transpose? Dealing with a lot of data. Want to program it to ctr+f or something of that nature...
View 7 Replies
View Related
Apr 8, 2014
I need to copy and paste transpose, some over 100 values, but I want to add a comma after each value, so they can be put into JD Edwards for running a report.
View 3 Replies
View Related
Jul 10, 2012
I need a formula to transpose rows to columns of a large table. The transpose array formula is not working for me. I know there is a column and row function formula to do this, but I can't remember it.
View 3 Replies
View Related
Nov 17, 2008
Twelve months of Data.
Each month in Columns
like so:
The labels are on the left.
The data is in each column to the right.
From column 2 to the end of the sheet at far right.
Family Size
One: 1 3
Two: 2 1
Three: 1 2
Four: 1 1.....................
View 9 Replies
View Related
Nov 27, 2008
I have spreadsheet which consists of two columns of data.
Column A contains a gerneric heading/group and Column B details some results for each heading/group; these results cover between 16 to 40 rows.
Basically, I need to transpose each heading/group's rows of results data into the same row as the heading/group row; then delete the rows where the results data was copied from; then I want to go to the next heading/group in Column A and repeat the process - transposing the results into a row.
I have written a simple macro which seems to work intermittingly - one which doesn't repeat or loop though. Sometimes I get the Runtime Error 1004 and sometimes the macro overwrites the transposed row if the results are listed over 16 rows.
My draft macro code is as follows:
Sub Transpose()
'
' Transpose Macro
' Macro recorded 27/11/2008 by Hunter
'
' Keyboard Shortcut: Ctrl+p............
View 9 Replies
View Related
Aug 27, 2010
I was wondering if there was an array formula or some VBA code which can transpose/repeat values based on a count. Below is an example of what I mean:
Name Count Output Tod 4 Tod Bill 3 Tod Sue 5 Tod
Tod
Bill
Bill
Bill
Sue
Sue
Sue
Sue
Sue
View 6 Replies
View Related
Mar 25, 2014
1. The idea is that the macro will start on sheet1, look at column "Jon", copy the values down to the last active cell as well as the dates and paste special values and transpose them onto the "Jon" tab starting in B8 and B9. Each day all of the dates and values on the "Jon" tab should be overwritten with the data on sheets1 and 2, instead of it being cumulative.
2. The macro will then go to sheet2, look at column "Jon", copy the values to the last active as well as the dates and paste special values and transpose them onto the "Jon" tab starting in B18 and B19. Each day all of the dates and values on the "Jon" tab should be overwritten with the data on sheets1 and 2, instead of it being cumulative.
3. The macro would then save the "Jon" tab as a separate pdf in a specified location.
4. The process would then repeat for "Mike" and "Paul". Each day the number of columns can fluctuate, so it may be 3 one day (Jon, Mike, Paul) and 8 the next. The number of rows also may vary from day to day, and column to column.
I have attached a workbook that contains the data for the scenario above as well as the output (Jon, Mike, Paul tabs). Ideally there will not be new tabs that remain for Jon, Mike, Paul, just a default tab (e.g. "output" tab) that would receive the transposed data from the columns for Jon, Mike, Paul. I put all 3 in the workbook so you could see how each of them would output.
View 4 Replies
View Related
Oct 6, 2012
I have a table with an identifier in column A and values in columns B to Z.
The structure is like this:
IdentifierA
value1
value2
value3
value4
IdentifierB
value5
value6
[Code] ......
There is 3.000 rows of data. As you can see some of the identifiers have no values.
On another sheet I need the following table to be generated in this format (two columns):
IdentifierA Value1
IdentifierA Value2
IdentifierA Value3
IdentifierA Value4
IdentifierB Value5
[Code] .....
Note that as IdentifierD has no values it shouldn't be in the new table.
View 3 Replies
View Related
Mar 7, 2013
I have a list in Excel, and it has the company in one column, and it's information in the next x rows until there is a blank row (4-7 rows). I get that you can copy the rows under the Company, transpose next to the company, and then delete the contents of the cells that you just took the data from, but I have 6200 rows do to this to, for 500+ companies. I tried recording a macro for two entries, and this is what I have (see below), but how do I modify this so that I don't need to type in every single range, and it will do it to the whole column? The data is in column A, I am posting in column B.
Basics for Macro Requirement:
1. Find the blank cell in row A
2. Skip the next cell/row (this is the company)
3. Select all the cells beneath the company cell, until it reaches the blank cell underneath
4. Copy, transpose these cells next to the Company cell (transpose in column B)
5. Delete the contents in row A that were just transposed
6. Find the next cell with data (company)
7. Repeat Steps 2-6
My recorded Macro:
Sub Macro2()
'
' Macro2 Macro
'
' Keyboard Shortcut: Ctrl+q
'
Range("A3:A8").Select
[code]....
View 5 Replies
View Related
Mar 17, 2007
Paste can this be set to default to Paste Special Values only ?
I have a sheet with a number of lists validated drop down boxes. The sheet is networked and works fine.
Problem other users as they are entering information into the required cells they are copying and pasting. Then the inevitable occurs they paste data into the wrong cells the validation from the original cell is pasted as well. Is there a way I can set paste special values only to be the default for the full sheet.
Unfortunately we use excel 97 in the office.
View 9 Replies
View Related
Feb 23, 2010
I've tried to change the line highlighted in red to 'Sheets("Financial Accounts").Pastespecial After:=Sheets("changes")' but the macro crashes.
Sub ConsolidatedTotals()
Dim BeforeSheetName, NextPageName As String
BeforeSheetName = "changes"
NextPageName = "Financial Accounts - " & Worksheets("assumptions").Range("c3")
Worksheets(ActiveSheet.Name).Select
Sheets("Financial Accounts").Copy After:=Sheets("changes")
ActiveSheet.Name = NextPageName
End Sub
View 9 Replies
View Related
Mar 20, 2007
I got this code the other day
Private Sub CommandButton11_Click()
Sheets("Invoice Page").Select
Rm = 3
For c = 1 To 5
Rm = Application.WorksheetFunction.Max( Cells(1000, c).End(xlUp).Row, Rm)
Next c
Range(Cells(3, 1), Cells(Rm, 5)).Select
Selection.Copy
Sheets(" Records Page").Select
c = Cells(3, 256).End(xlToLeft).Column + 2
Cells(3, c).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
And instead of pasting the cells i want it to paste speical so it just pastes values rather than formulas.
View 5 Replies
View Related
Jan 7, 2008
I am a VB novice and I cannot seem to figure out how to loop a macro. So here is what I have...
Two worksheets, Sheet1 and Sheet2. I want to copy data starting from the second row of Sheet2 and then past it into specific cells on Sheet1. Then I want excel to print the the page. I want this process to repeat itself for all the rows in Sheet2. I can easily enough record a macro to do this process (which I have), but I cannot figure out how to easily loop it. If someone can help I have to print this log daily to meet federal guidelines. Thanks a million everyone!
An example would be to copy cell A2 on Sheet2, then paste in cell D4 of Sheet1, print and repeat for the next row.
View 9 Replies
View Related
Apr 27, 2014
I have 2 sheets of date. Sheet 1 contains a temple range A3:T162. This set of data is repeated x number of times. Sheet 2 contains a range of data A1:A3 repeated x number of rows. The data is different on each row. So if I have 10 rows of data in Sheet 2 , there will be ready in Sheet 1 10 sets of dats, as in range A3:T162.
I would like the following action:
the contents of Sheet 2 Row 1 to be pasted into Sheet 1 cell A3,B3,C3
then contents of Sheet 2 Row 2 pasted into A163,B163,C163,
then contents of Sheet 2 Row 3 pasted into A323,B323,C323,
So basically each consecutive row on Sheet of column A,B,C is pasted back onto Sheet 1, 160 rows below until all contents of Sheet 2 has been exhausted.
I have attached an excel sheet with the relevant data.
View 6 Replies
View Related
Mar 24, 2009
I have 10 worksheets. They are labelled 'FEB', 'MAR', 'APR', etc...to 'NOV' (NB: JAN & DEC not needed). In column "G" on all these sheets I have the data as "CURRENT" or "OVERDUE". The first 3 rows on every sheet are headers, so the data starts at 'G4' on every sheet.
I then have an "OUTSTANDING" sheet which will display all of the "OVERDUE" items from the various months. I have an UPDATE_Click() event which when actioned needs to search all the column Gs in the month sheets and then copy the data from column 'B' to 'F' of the corressponding row to an "OVERDUE" result. The data from B-F then needs to be pasted in the next available row on the "OUTSTANDING" worksheet (starting at row 4, as first 3 rows are headers with merged and unmerged cells).
Nothing fancy, when the search go does the column and hits a blank cell that means its the end of the list and can move on to the next month.
View 9 Replies
View Related
Mar 26, 2014
copy content from particular cells in the current sheet to the next available row in another sheet. I need to Paste the Values as the cells I am copying are equations. It was working great until I tried using it again today. For some reason I get the following error:
Run-time error '1004':
Unable to get the Select property of the Worksheet class
Here is my code:
Code:
Sub CopyCampaignMetrics()
Range("A2:E2").Select
Selection.Copy
Sheets("Sheet2").Select("A" & Rows.Count).End(xlUp).Offset (1)
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
View 9 Replies
View Related
Dec 31, 2006
How would the code be changed below to be Paste Special Value?
The numbers copied are changing every few seconds and I want a snapshot of it.
im TheRow As Integer
Sheets("Loader").Range("C5:AC5").Copy
TheRow = Sheet2.Range("A100").End(xlUp).Offset(1).Row
If TheRow < 6 Then TheRow = 6
Sheet2.Cells(TheRow, 3).PasteSpecial
If TheRow = 6 Then Range("B6").Value = 0 Else Cells(TheRow, 2) = Cells(TheRow - 1, 2) + 1 / 24
Cells(TheRow, 1).Value = Date
ActiveWorkbook.Save
LastSoon = Now + 1 / 24 '1 hr from last time
Application.OnTime LastSoon, "Capture" 'set up for next hour
View 9 Replies
View Related
Jul 21, 2007
I have the following in my Workbook
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
'If you have any worksheet to exclude
If Sh.Name = "Sheet2" Then Exit Sub
With Target
If Len(.Value) Len(Trim(.Value)) Then
MsgBox "You just entered a leading space character in" & vbCrLf & _
" cell " & .Address(0, 0) & "." & vbCrLf & vbCrLf & _
"If you intend to delete the value in that or any cell, " & vbCrLf & _
"please press the Delete button on your keyboard.", 16, " No leading spaces allowed !!"
Application.EnableEvents = False
.Value = Trim(.Value)
Application.EnableEvents = True
End If
End With
End Sub
When I tried to Copy>Paste Special > Formats or Values of more than One row this line highlights
If Len(.Value) Len(Trim(.Value)) Then
That is, if I select C3:Q3, Copy, then select C10:C15 and try to do a Paste Special that is when it gives me an error 13: Type mismatch.
If I just select C10 and do the Paste Special, it's just fine.
View 9 Replies
View Related
May 4, 2007
I am trying to write a VBA code which will add any figure (say X) to the visible cells in the selected range. I am mentioning the visible part becuase my data might be filtered and thus. So far I have been able to figure out the following code(by recording a macro and then going behind the scenses to see the code):
Sub Add_X()
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlAdd, SkipBlanks:= _
False, Transpose:=False[/color]
End Sub
The problem is that how can (if possible) I can pass a parameter to the above code (which will be X; as explained above). There might be many possible solutions??? However one that comes to mind is that when I selected a range of cells and then run my code, a dialog box should pop-up and ask for a # and then then take that # to add it to the visible cells of the selected range.
View 2 Replies
View Related
Jan 26, 2008
Is there a way to only allow paste special values or formulas within a cell? People are coping and pasting and screwing up the formating
View 2 Replies
View Related
Mar 4, 2014
I need to repeat the following copy past macro the number of times equal to the value in column B and repeat the process for rows 3 through 27. It would end up being a loop with in a loop. The data in C3:H3 will be pasted onto the "Fixt#" sheet as many times as the value in column B3. The idea is to create an individual entry on the "Fixt#" sheet for each row on the "Totals" sheet.
Code:
Sub Create_Fixt_SheetI()
'
' Create_Fixt_Sheet Macro
'
'
Range("C3:H3").Select
Selection.Copy
Sheets("Fixt#").Select
ActiveSheet.Range("B" & Rows.Count).End(xlUp).Offset(1).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
View 3 Replies
View Related
Jun 28, 2009
I have a little bit of problem with lookup function. When i paste values from another worksheet (paste special, values) in a cell which is lookup value i get #N/A. These values are numbers. When i put '7 for example i get the values i want from lookup table. I have a lot of these cells and its tedious job to put ' in front of every value. Is there a quicker solution?
View 3 Replies
View Related
Sep 14, 2008
I have some simple Macro code that works fine for the COPY side of the action...
View 14 Replies
View Related
Nov 14, 2008
I have a macro that copies the main report sheet in my workbook. The point of the macro is to get a copy of the report data without allowing anyone to see the formulas/data behind it - when it pastes, it pastes only the values in the tables and then copies the charts, deletes the live ones, and pastes only the images back on the sheet. The macro works on my computer and my partner's computer, but not on anyone else's. It stops at this point:
View 5 Replies
View Related
Jul 9, 2009
During the execution of some code I come to a point where the properties of a range of cells needs to be converted to numeric (is at that point text).
Normally I do that by adding a 1 in an cell nearby and use the copy/paste special method.
I was wondering if I can do that in a different way.
Is it possible to define a MultiplyFactor as 1, and use this in paste special part.
Something like: .....
View 9 Replies
View Related
Sep 16, 2009
I've got a sheet which has two column headings - Resources and Cost. I have another sheet which has the calculations for both of these. They are in cells H24 and D29 of the second sheet. I want to have a macro on the second sheet that if I click it, it will paste special these two figures (values only so no formulae), into the active cell on the first sheet. This is the code I've got so far but every time I run the macro it just pastes into the same two cells in the first sheet.
View 4 Replies
View Related