VBA / Transpose Each Row To Return One Single Column

May 11, 2012

What macro would convert this:

Excel 2007AB112234Sheet2

To this:

Excel 2007A51627384Sheet2

I need a macro please that works with a table of any size.

View 6 Replies


ADVERTISEMENT

Transpose Rows To Single Column

Feb 23, 2012

I'm trying to do something which I can't manage with traditional formulas and a macro might be required.

I have the following table:

Code:

Header1Header2Header3Header4Header5
1.00 6.00 11.0016.0021.00
2.00 7.00 12.0017.0022.00
3.00 8.00 13.0018.0023.00
4.00 9.00 14.0019.0024.00
5.00 10.0015.0020.0025.00

What I would need to do is take all column values and transpose is to rows, copying the header for every set, like:

ColumnA ColumnB
Header1 1.00
Header2 6.00
Header3 11.00
Header4 16.00
Header5 21.00

[Code] ...

View 8 Replies View Related

Transpose Each Row Of X Columns Into Single Column

Apr 27, 2008

I need to combine data in 5 columns into 1 column as below. The columns to be merged are always identical in length up 20 000 lines.(Full example attached)
Raw data in columns A,B,C,D,E as below

A1 B1 C1 D1 E1
A2 B2 C2 D2 E2
Converted should be
A1
B1
C1
D1
E1
A2
B2
C2
D2
E2

View 7 Replies View Related

Transpose Column Range Into Single Cell With Delimiter

May 14, 2008

I want to add a Punctation mark (comma), like this: ,
and also want to add punctation mark (colon), like this: :

In this moment I have below macro:

Public Sub CombineCells
Dim Combined As String
Combined = ""

For Each Cell In Selection
Combined = Combined & Cell.Value & ":"
Next Cell

Selection.Cells(1, 4).Value = Combined
End Sub

the effect shoud be like this:

before:
--A
1-C
2-D
3-E
4-F
Etc.

after transposed:
--D
1-C:D,E:F Etc.

View 3 Replies View Related

Text To Column With Single Column Transpose?

Aug 13, 2014

I have a file that I need to do a text to column separated by comma and then transpose results to a single column. See exaple below

File
AreaZone
0886518
1801315
1801413
1801524, 25
1804214, 16, 18

Results:

AreaZone
0886518
1801315
1801413
1801524
1801525
1804214
1804216
1804218

View 8 Replies View Related

Return Nth Value From Single Column Range

Apr 29, 2008

Assume A1:A10 filled with the characters A to J.

I'm looking for a way to return the letter "C" when 3 serves as the index_num BUT I do not want to present all 10 characters in the formula.

I would like to use the range A1:A10 =Choose(3,A1:A10) or, if applicable, to name the range as DATA and then use: =Choose(3,DATA)

I tried all I know, including INDIRECT - but found no solution [is there any ?]

As I'm familiar with all workarounds - I will appreciate replies that use CHOOSE.

View 9 Replies View Related

Return Range Of Numerical Values In Single Column Based On Frequency Percentage

Oct 25, 2005

I have a single column of numerical values that may repeat many times within
the column.

I require a flexible Formula:
Use an Input Cell for the specified and changeable Percentage(s) %.
Column may be filtered – so only take into account Visible Filtered Cells.

The Formula will calculate and Return the numerical range of values that fall
between the specified percentage % (using the Input Cell) e.g.; 70%.

The Formula should Return two numeric values: a Start Value and an End Value
– NOT necessarily the minimum and maximum per se BUT the MIN and MAX of the
values that appear 70% of the time in the column; therefore, taking into
account Repeat / Duplicate values.

The calculated Results: the two numeric values will be returned to separate
cells on a new Sheet.

View 9 Replies View Related

Transpose Multiple Columns For Single Row

Feb 12, 2014

Before
XYZ1
XYZ2
XYZ3
XYZ4
XYZ5
XYZ6
XYZ7

After
XXXXXXXYYYYYYYZZZZZZZ1234567

[Code] .....

View 10 Replies View Related

Find Multiple Instances Of Single Criterion In Row & Return To A Single Col

May 8, 2006

Find Multiple instances of Numeric Criterion in Row & Return To a Single
Column.

I have a Dynamic Named Range "Data" spanning 10 Columns and many Rows.
Each Row may contain duplicates of the Numeric Criterion.

I would like to find ALL instances of a specific Numeric Criterion across
each single Row in the Dynamic Range "Data" and have the Results returned to
a New Sheet in a single column.

NEW Sheet:
The Numeric Criterion is housed in G5.
The matched criterion should be returned to the New Sheet starting at G7.
Duplicate instances in the same Row should ALL be returned to the same cell
in Column G on the New Sheet.

Sample Data Layout:
Columns I J K L M N O P Q R
Row No.76 1 0 1 1 0 1 1 1 0 1
Row No.77 2 2 3 2 1 2 2 0 0 0
Row No.78 3 3 3 3 3 0 3 0 3 0

Scenario:
Looking for Numeric Criterion 1 (one).

Expected Results - New Sheet:
Row No.7 Column G (Cell G7) 1111111
Row No.8 Column G (Cell G8) 1

In Row 76 of the Sample Data ALL seven Numeric Criterion of 1 (one) should be
returned to the same cell G7.
In Row 77 of the Sample Data there is only one Numeric Criterion of 1 and it
should be returned to cell G8.

View 14 Replies View Related

Transpose Multiple Rows Of Data To Single Row?

Jul 24, 2014

I have a set of data that I need to change the "layout" of. I've had similar situations before, but this one is just killing me. Basically, my data is for item pricing. It is represented as

Item, QTY, Price
A,1,1.25
A,10,1.1
A,25,1
A,100,0.9
B,1,1.25
B,10,1.1
B,25,1
B,100,0.9
C,1,1.25
C,10,1.1
C,25,1
C,100,0.9
Item D,Qty1,P1
Item D,Q2,P2
Item D,Q3,P3
Item D,Q4,P4

However, I need it in the following format:

A,1,10,25,100,1.25,1.1,1,0.9
B,1,10,25,100,1.25,1.1,1,0.9
C,1,10,25,100,1.25,1.1,1,0.9
Item DQ1Q2Q3Q4P1P2P3P4

As a note: there is a maximum of 4 Price/QTY breaks, so the script can be hard coded for that. When I tried this, I had it looking at the Item column, finding out how many breaks there are for a specific item and then doing a loop to extract the qty and price to a single row in the format shown above. It worked for the first 2 items, but then the loop got throw off. I will see if I can reproduce the code for that.

View 4 Replies View Related

Transpose Data In Single Cell From Horizontal To Vertical

Oct 28, 2011

Currently we are transposing data in multiple cells from horizontal to vertical & vice versa.

But when i try to transpose data which are in single cells seperated with semicolon or comma, im not able to perform the action.

Is there any VBA function or public function to perform the this action?

Example:

From

A 1Dog; Lion; Parrot; Bee; Snail

To

A 7Dog8Lion9Parrot10Bee

11Snail

Like wise i will have to do the same action for the following

A B1Dog; Lion; Parrot; Bee; Snail2Goat; Crocodile; Love Birds; Bug; Snake3Hen; Elephant; Peocock; Mosquito4Dog12; Tiger78; Flies5Cat11; Bug1506Chicken7

View 5 Replies View Related

Check Whether Transpose Ranges Are Equal In Single Cell

Apr 30, 2008

How a single-cell formula to check that 2 transpose arrays are equal.

For example, A1:A5 are {1,2,3,4,5}

AND

B3:B8 are {1,2,3,4,5}

Is there an array formula in C3 for example, that will check (i.e. say TRUE) if corresponding ranges are true i.e. check in this cell that A1=B3, A2=B4,...A5=B8.

View 9 Replies View Related

Multiple Row, Single Column Cell Blocks Into Single Row, Multiple Column Format

Mar 21, 2008

I have a text file containing internet explorer browser history. The file has data in the following format (in Excel all data is in 1 column): ...

View 9 Replies View Related

Transpose Rows Keeping Heading In Column A And Data In Column B

Mar 2, 2011

I have an excel spread sheet with several rows of 265 (9A-IV) columns each with a heading. I would like to transpose the worksheet columns so that the heading is placed in Column A against the corresponding that is placed in column B. For example

ABCD14692571038Transpose to A1A2A3B4B5C6C7C8D9D10

View 7 Replies View Related

Transpose Multi-Column Groups/Repeats Based On 1 Column

Mar 19, 2009

I have a sheet with 3,000 rows and only two columns. Column "A" consists of 20 to 30 different names, column "B" consists of 50 to 60 different products. I need to be able to evalute the value in column A and copy, paste special transpose all values in Column B that have the same value in column A. As an example if cells A1 through A5 is "Arizona" and cell B1 is Broccoli, B2 is Cauliflower, B3 is Apples, B4 is Oranges, and B5 is Bananas, I want to copy B1 through B5 and paste special transpose to cell C1.

This then would need to loop all the way to the bottom of the data in Column A looking for a change in value. The attached file called Sample Data has two tabs. The one titled "report" shows the raw data, the one titled "Final" shows how I would like the results to appear (column L)

View 6 Replies View Related

How To Transpose Data From Many Coloum To Single Coloum

Dec 11, 2008

i have work sheet with 2 coloums with random data...

View 9 Replies View Related

Transpose Every Other Row To Column

Aug 26, 2008

I have a sheet with a layout similar to the following:

Network Location | Visits
Company A | (empty cell)
% Change | 8%
Company B | (empty cell)
% Change | 5%

Is there a simple way (I'm using Excel 2007) to make it appear like so:

Network Location | % Change
Company A | 8%
Company B | 5%

View 2 Replies View Related

Transpose Column

Jan 26, 2007

Is there a way to transpose or swap a column or row of data. e.g. A column of numbers going from 1 - 10, swap them around so it goes 10 - 1 in the same place?

View 7 Replies View Related

Lookup Multiple Values In A Single Cell (separated By Commas) And Then Return The Values To A Single Cell (also Comma Separated)

Jan 7, 2009

If I have, in one cell (call it D1):

EH,DR,HU

and in a lookup table on another sheet:
A B
1 ED T
2 EH F
3 DR G
4 HU H
5 SE E
6 YU E

I need to be able to lookup the values in D1 on the table and return the values in column B to a single cell (say E1), also comma separated...

eg...

F,G,H

View 9 Replies View Related

Multiple Conditions To Return Single Value

Dec 22, 2011

if color(white),pattern(6" tile),finish(gloss),width(>36") & height(>98")then return item ordering# different worksheet datadase.

WALL SELECTIONColor NamePatternFinishExisting
Wall Ht.Wall System stops at:
Wall Repair[SELECT COLOR][SELECT PATTERN][FINISH][SELECT HEIGHT][SELECT HEIGHT][REPAIR]Plum
Wall SpecsSoap Dish Wall SpecsBack Wall SpecsExtra
Wall Specs (if needed)Finished Size:[WIDTH]X[HEIGHT][WIDTH]X[HEIGHT][WIDTH]X[HEIGHT][WIDTH]X[HEIGHT]
Quanity:[QTY][QTY][QTY][QTY]Item Ordering #:

View 2 Replies View Related

Multiple Data To Return Single Value

Jan 30, 2014

I think I need to link different formulas here and don't want to use a pivot table. The columns run to row 200 and I have 10 separate spreadsheets. I want to create a new file, a master consolidated view

Each row represents 1 client

Column A Contains Yes or No
Column B Contains the Source (i.e Post, Email, Phone)
Column C contains a range of different dates ie when customer made contact
Column D Contains a currency value.

So the question I need to answer is; Return a sum of Column D for those values who's row attributes are Yes, Post and date of current day +5.

In simple terms who can I contact in 5 days time and what is the expected value.

I have added current date in cell E1. F1, F2, F3, contains text Post, Email, Phone.

View 4 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

Convert Column To Row Without Using Transpose

Jan 31, 2009

i am looking to convert data in columns to rows without using transpose but by formula. and i can drag it across to the right to keep getting new data.

i see posts mention about using functions like index, match? or other functions to do it?

i have attached the excel.

View 6 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 Range From Column To Row?

Aug 20, 2013

I have code below that I need to take a copied range and Transpose the range from a column to a row.

Code:
Sub Search_Notes_Main()
Application.ScreenUpdating = False
Sheets("Analyst Main Template").Select

[Code].....

View 1 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

Transpose The Values In A Column

Jun 17, 2008

i want to transpose the values in a column to a row and when i update the values in the column it should be transposed to the next blank row..

View 10 Replies View Related

Transpose 1 Column Based On Another

Nov 3, 2009

I have a spreadsheet with the following columns

No Of Transactions
Total Revenue
LID
OURSUB
SubCount
Name
Phone
Phone2
Email
Phone3
Phone4
Phone5
Phone6
Phone7
Broker
Bcode

There are 28,000 records in the spreadsheet.

The column LID contains the ID of the client. Each client can have transactions in multiple subs ("oursub" column). The spreadsheet is sorted by the LID column.

What I need is for the "oursubs" values to be transposed column headings for each unique LID. E.g. if "LID" 12345 has 50 records with 25 different "oursubs". I want one row with LID "12345" and 25 columns with the names of the 25 "oursubs".

I am attaching two sample spreadsheets. The spreadsheet "LID_Source.xls" contains sample source data and the spreadsheet "LID_result" shows the result that I want.

View 9 Replies View Related

Transpose Column Of Data

Sep 11, 2007

I am trying to work with a table that came from a web page that looks like this. ( It has about 200 records.)

Record 1
Name
Address
City, State Zip
Record 2
Name
Address
City State Zip
.
.
.

I want the resulting file to look like this

Record1, Name, Address, City State Zip
Record 2, Name, Address, City State Zip

I can use the Copy / Paste/transpose, but it would look like this. Record 1, Name Address, City State Zip, Record 2 Name Address. I could transpose one record at a time, but that would take a long time.

View 2 Replies View Related

Sum Of Multiple Cells And Return It To One Single Cell

Nov 4, 2009

I'm trying to take the sum of multiple cells and return it to one single cell using the Vlookup

For Example I want to match the ID numbers from one spreadsheet and use the list of codes to return the value of the sum of all matched numbers. So in this example I would want the number 65 in one cell...

View 9 Replies View Related







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