Rows 2 Columns

Feb 13, 2008

I have huge data like below.

Parent Site:A
Child Site:A
Child Site:B
Child Site:C
Parent Site:B
Child Site:A
Child Site:B
Child Site:C
Child Site:D
Parent Site:z1
Parent Site:1

I am looking for a macro which can convert above data to columns as per below.

******** ******************** ************************************************************************>Microsoft Excel - r2c.xls___Running: 11.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutA1=ABCDEF1Parent SiteChild SiteChild SiteChild SiteChild SiteChild Site2AABC  3BABCD 4Z1     5112510156XA1Z33 720A    Sheet2 [HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name boxPLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

View 9 Replies


ADVERTISEMENT

Transpose (switch) Rows Into Rows And Columns Into Columns?

Jul 28, 2013

i need to mark some row (which has some content written in), mark other row(with data too) and switch/transpose them mutual. when i was trying transpose method, which is using for switching rowns and columns, it wrote me error, that data are overlapping. it means it cant work on same things (rows > rows, columns > columns).

View 14 Replies View Related

Moving Data From Rows To Columns And Delete Repeated Rows

Apr 16, 2014

removing duplicate rows and move other data frm rows to columns.xlsx.

I am attaching a sample excel sheet showing what I need to do.In the first tab, I have a list that includes duplicate rows (first column only). I want to remove those duplicate rows but I don't want to lose the data in the following columns which can be unique or duplicates as well.

see the desired result tab in the sheet to get an idea of what I am looking for as the end result.

Keep in mind that the actual source file I am working with could have up to 50000 row, and the expected results could be around 2000 rows. So nothing can be done manually.

View 5 Replies View Related

Getting Rows To Columns Macro Skipping Blank Rows

Dec 28, 2011

I have this in Column A, with about 120 entries:

Company 1
Contact 1
Address 1
City, ST, ZIP 1
Phone 1
Fax 1

Company 2
Contact 2
Address 2
City, ST, ZIP 2
Phone 2
Fax 2

Company 3
Contact 3
Address 3
City, ST, ZIP 3
Phone 3
Fax 3

I want this:

Company 1 Address 1 City, ST, ZIP 1 Phone 1 Fax 1
Company 2 Address 2 City, ST, ZIP 2 Phone 2 Fax 2
Company 3 Address 3 City, ST, ZIP 3 Phone 3 Fax 3

all the way down.

I can't figure out how to record the macro to tell it to then skip the blank line, collect the next set of data, and put it in the next row. I can do it for two, but then it just replaces the first two with the next two and I lose data.

View 5 Replies View Related

Move Rows Of Data From Several Columns But Not All Columns?

Dec 18, 2013

Column A is numbered 1 -100 successively Column B thru D contains data that goes with the assigned number in column A. I need to be able to move rows of data in column B through D to a different set of rows all at the same time (not one cell at a time) without disturbing the set numbers in column A. And with that, have all the other rows of data automatically adjust accordingly(not to be deleted or replaced).

View 1 Replies View Related

Turning 64 Rows And 18 Columns Into One Row With 1152 Columns

Aug 10, 2008

I have individual data files (one for each participant). Each file has 64 rows (one for each trial in an experiment) and 18 columns (one for each variable). I would like to create a master data file in which each participant is represented in a single row. I will then have 1152 columns (18 columns for the variables, repeating 64 times so that each trial is represented).

In other words, my individual data files look something like this:

Participant 1 (title of data file)

Trial/var1/var2/var3
1 55 43 65
2 54 43 56
3 33 23 56

and I want to compile all the data into a single file that looks like this:
Participant/Trial1_var1/Trial1_var2/Trial1_var3/Trial2_var1/Trial2_var2/ ...
1 55 43 65 54 43
2 . . .

I know how to record macros and use IF, THEN, AND, & SUMIF statements creatively, but that's about it. I was hoping to record a macro that I could use on each individual data file to turn it into a single row, and then paste each row into the master file.

View 9 Replies View Related

Aligning Rows Of Different Columns With Unequal Rows?

Feb 11, 2013

How to align two columns that sometimes have rows that are unequal in number. The data is sourced from a web page that has a table layout and the table lays out the one to many values this way in the table. My data looks like this:

Table ...Term
t1 ..... term1
t2 ......term2
..........term2.a
..........term2.b
..........term2.c
t3 ......term3
..........term3.b

The editor removes leading spaces. In the column Table there are only three rows but in column Term there are multiple rows per single row from column Table. So one row t2 for column Table has three rows in column Term. Are these cells merged and can I in a mcro detect if the cells are merged? How is the addressing of the merged cells in a VBA macro?

View 2 Replies View Related

Remove Empty Rows Based On Range Of Columns If Columns Are All Empty (no Data) Delete

Oct 24, 2012

Using the following code to remove empty rows based on whether a specific range of columns is empty. The code works if the cell has a zero, but not when the cell is blank. An example of the data is attached.

VB:
Public Sub DelRows2()
Dim Cel As Range, searchStr, FirstCell As String
Dim searchRange As Range, DeleteRange As Range

[Code].....

View 1 Replies View Related

Columns Into Rows And Rows Into A Column

Jun 12, 2007

have a large dataset where I want to move some data from rows into columns and other data from columns into rows. I have enclosed an example. It is indeed only an example as the original has many more rows and colunms. What I want to do is to move the the years (columns) into rows and move Product (row) into columns. The example shows how it currently looks and how I want it to look.

View 2 Replies View Related

Multiple Ccolums/rows To Get Data From Multiple Columns/rows (vlookup)

Jan 15, 2010

I have created a spreadsheet to show some reports and I wanted to serch for some datas which overloops themeselves. If you can have a look at a test file I attached you will see the full picture. I have 2 tables, where the 2nd one is on the right side of the 1st one. 1st table:..............

View 3 Replies View Related

Rows To Columns Or Columns To Row

Nov 13, 2006

I wrote a short VBA to change known data from rows to column and columns to row.

Data is like this:

Hello Hello Hello
Hello Hello Hello

I can chang it to Hello .... Hello
or
Hello..
.
.
.Hello
I need to figure out a way to do this when data is not fixed - ie:

Hello Hello Hello Hello Hello
Hello Hello Hello
Hello Hello Hello
Hello

or

Hello Hello Hello Hello Hello Hello
Hello Hello Hello
Hello Hello Hello

Can you offer suggestions on what commands I can use to find the begining and ending of data, so that no matter what format it is in I can change it to one row or one column?

View 9 Replies View Related

Certain Columns To Rows

Dec 14, 2008

I have 20,000 columns of data that I need turned into 4 rows.

I know about copying and paste special (transpose), however, the data is in groups of 4 columns

Example:

1. Name
2. Street
3. City, State
4. Number
5. Name
6. Street
7. City, State
8. Number

and I need it to look like
Name Street City, State Number

So is there anyway that I can make it turn columns into rows by groups of 4?

View 14 Replies View Related

Turn Rows Into Columns?

Jul 11, 2012

In Column 'A' I have part numbers. In Column B I have suppliers that supply that part number. My report drops into excel as per the below table. My issue is if a part number can be supplied by more than one supplier it duplicates the part number in Column 'A' based on how many suppliers can supply that part number In Column 'B' it will list each supplier for that part number In the table below you can see that part number 1122 can be supplied by supplier 'ABC' and also 'DEF' - Part number 9966 can be supplied by 3 different suppliers so lists the part number 3 times in Column 'A' and in column 'B' it lists each supplier i.e. 'TUV', 'WX' and 'YZ'

What I want to be able to do is the suppliers in Column 'B' be listed in the cells to the right of the part number and dupliactions in Column 'A' be removed

'A' 'B'1122
ABC

1122
DEF

9966
TUV

9966
WX

9966
YZ

View 9 Replies View Related

Rows To Columns With Linebreaks

May 26, 2014

I have a list of election results for the British election in 2010 which I'm trying to compile into a format like this: [URL] ...

The list of base data I have however has each constituency in columns rather than in rows: [URL] ....

I know there's the copy and paste using the Transpose tool, but I don't really want to have to do this 650 times for each individual constituency: is there any way I can select all of it and do some kind of trick so that it knows when to go to a new row based on when the name of the constituency changes?

View 12 Replies View Related

Transpose From Rows To Columns

Jun 10, 2014

A code to transpose from rows to columns.

But why doesn't it transpose like the sheet 'How it should be' but all in one row?

HTML Code: 

Sub MG10Jun34()
Dim Rng As Range
Dim Dn As Range
Dim c As Long
Application.ScreenUpdating = False

[Code] .......

View 2 Replies View Related

Formatting Rows To Columns

Oct 7, 2009

I true Excel novice here-

We have a BUNCH of data we need to get in to a spreadsheet format-

can anyone kindly tell me how to do the following

985-0050
3PAR ADVANTAGE, PRICE PER NODE FOR 4, 6,
3PAR ADVANTAGE, PRICE PER NODE FOR 4, 6, AND 8 NODES
$14,876

we want the data to go from 4 seperate rows to four new columns

PART NUMBER, DESC1, DESC2, PRICE

View 9 Replies View Related

Converting Columns Into Rows

Mar 23, 2013

I have a spreadsheet that has many columns I need them to be stacked into rows to import them into a publishing program but I don't know how to accomplish this automatically. right now all I know how to do is insert rows and drag and drop the info which is very time consuming.

I have attached a sample of the sheet. A2 through A12 is how I would like all of the data to appear. However A14 through G14 is how it looks now.

View 5 Replies View Related

Exporting To CSV Columns / Rows

Jun 29, 2013

I have a simple spreadsheet with 4 columns A-D and a varying number of text rows in each column. I need to be able to export it into a CSV so that it puts each column on one comma separated line (in a text file).

So it should look like this:
A1,A2,A3,A4...
B1,B2,B3,B4...
C1,C2,C3,C4...
D1,D2,D3,D4...

The problem is that when I select save as CSV it looks like this:
A1,B1,C1,D1
A2,B2,C2,D2

I know that I could rewrite the excel file in rows rather than columns but I would prefer the columns.

View 3 Replies View Related

Converting Columns Into Rows?

Jul 14, 2013

excel to convert the data from columns into rows as mentioned below

current excel data is

deptemp1salemp2sal2emp3sal3
HRAbc123bcv231sjn987
ITsddds9876ds999dsb123

Expected data
Deptempsal
HRAbc123
bcv231
sjn987
ITsdds9876
ds999
dsb123

There are close to 10000 records like this is there any formula/function to change this data.

View 11 Replies View Related

Move Rows Into Columns

Aug 11, 2013

I need a way to move every 7 rows into columns.

So rows 1-7 become columns 1-7, rows 8-14 into columns 1-7 etc.

View 3 Replies View Related

Transpose Rows To Columns?

Sep 26, 2013

I have 19 rows of data spanning 184 columns, and I'm attempting to transpose them to be 19 columns and 184 rows, which would normally be easy. The problem is I need to be able to transpose the numbers while still keeping the formulas on a separate worksheet linking/connecting to the correct cells. I almost need to be able to cut/special paste - transpose, but that's not possible... I don't think.

View 3 Replies View Related

Can Columns Widths Be Different In Different Rows

Oct 4, 2013

I have made a spread sheet where the row 1 - 20 are 12 wide but I'd like rows 20-25 to be a lot wider. I've looked around and can't find the solution since I don't know how to explain it in a few short words.

View 1 Replies View Related

Print All Columns And Certain Rows?

May 16, 2014

I have a print button and have defined a start row (srow) and end row (erow) per the code below. What arguments do I use within .printout to restrict the print to these rows? All the guides I have seen so far have predefined print areas so I don't know how to handle this variable.

[Code] .....

View 3 Replies View Related

Rearrange Rows Into Columns?

Jun 11, 2014

I have a report that lists the # of times an agent in a call center passed or failed their call based on specific guidelines. The report that's generated will not show the failed category if they didn't fail any calls. I've attached what the report looks like. I'm trying to format the report so that in column A I have the name, column B the passed calls and column C the failed calls. Column B and C can be interchanged...doesn't matter too much. If they don't have any failed or passed calls, I'd like a 0 to show up. I've tried messing with filters and INDEX/MATCH functions but can't make any headway.

View 2 Replies View Related

Columns To Insert The 2 Rows

Aug 22, 2007

I have this excel file which has data in it. However, this data will come in everyday. Eg, A1 to A10 is QWE, A11 to A20 is RTY, A21 to 30 is UIO. But as I said earlier new data will come in everyday. For eg, it will become A1 to A15 is QWE, A16 to A30 is RTY and so and so forth.

I need to insert 2 rows after QWE, RTY, UIO. But as data will come in everyday, I cant standardise my columns to insert the 2 rows.

View 14 Replies View Related

Marking Columns/rows

Nov 19, 2008

Usually when I try to mark a row/column for future reference I code the following:

View 14 Replies View Related

Multiple Rows And Columns

Jun 19, 2009

I have a sheet that is organised as follows:
a) Column A contains 50 names, all unique. R1C1 heading is "Name".
b) Column B to Column H are for some text that can contain special characters, numbers, spaces etc.
c) R1C2 heading: "Day 1"
d) R1C3 heading: "Day 2". and so on till R1C8 having heading as "Day 7"
e) All the cells are filled in the specified range as specified in (b) above.

In summary, each of the names will have 7 different tasks associated with it in the row. These tasks can repeat for all the names.

For example: Consider the below set of data for 3 rows and 7 columns (spaces are used as column delimiter. In reality, spaces can form part of the tasks for each name):

Name D1 D2 D3 D4 D5 D6 D7
-------------------------------------
aaaa T1 T1 T1 T2 T3 T4 T5
bbbb T1 T2 T3 T3 T3 T4 T5
cccc T1 T4 T4 T4 T4 T4 T4

I hope its clear till this point.

Now my requirements are as follows:
a) Find out all unique elements from the set of tasks across all days and list them from 100th row onwards with each unique entry in new row.
b) For each of the unique tasks, list the names that have worked on that task in the same row.

For example, the output should be as follows:
T1 | aaaa, bbbb, cccc
T2 | aaaa, bbbb
T3 | aaaa, bbbb
T4 | aaaa, bbbb, cccc
T5 | aaaa, bbbb

The character "|" above is used as a seperator for columns.

View 5 Replies View Related

Average Of Columns Of Various Rows

Jul 30, 2009

I have data that I need averaged. The problem is that my data is taken into chunks of time, and I want to average each individual column after each break of time. My data looks like this: ...

View 6 Replies View Related

Rows To Columns With A1 Data

Nov 16, 2009

I am trying to sort out some item numbers with their page numbers.

My file is in the following format:

View 6 Replies View Related

Freeze Rows AND Columns

Sep 6, 2009

Is there a way to freeze both rows and columns? I want to freeze the first five rows 1-5 and columns A-C and have the ability to scroll while having thee rows/columns static?

View 7 Replies View Related







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