Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Converting columns into rows

I have a mass amount of data that needs to be converted from columns to rows.
The columns are Date, Customer Name, Product 1, Product 2, Product 3, etc...
- in the product column is the status of each product for that time period.
I need to convert the Product columns into rows of data so that the columns
become Date, Customer Name, Product, Status. I know that there is a
transpose function but I have A LOT of data to transpose and using this
function I have to manually transpose for each month and customer for up to
15 products which is very time consuming. I am wondering if there is a way
to automate this process. Also, for each division of the number of product
columns varies so whatever automation is recommended needs to be able to
adjust for the number of columns in a sheet.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Converting columns into rows

To reorganize the data, you can use the 'unpivot' technique described by
John Walkenbach:

http://j-walk.com/ss/excel/usertips/tip068.htm

Before you 'unpivot' the data, concatenate the data in the first two
columns (Date/Customer). For example:

1. Insert a blank column C, and enter a heading in row 1, e.g. "Info"
2. In row 2, enter the following formula, and copy down to all rows:
=A2& "^"&B2
3. Copy the formula to the end of the data
4. On a blank worksheet, select cell A1

Then, follow John Walkenbach's instructions to unpivot the data, using
column C and the columns to the right.

To split the concatenated column,
1. Move the Info column to the right end of the data
2. Select the Info column
3. Choose DataText to Columns
4. Choose Delimited, click Next
5. In the 'Other' box, type: ^
6. Click Finish
7. Return the info columns to the far left of the data


Manni wrote:
I have a mass amount of data that needs to be converted from columns to rows.
The columns are Date, Customer Name, Product 1, Product 2, Product 3, etc...
- in the product column is the status of each product for that time period.
I need to convert the Product columns into rows of data so that the columns
become Date, Customer Name, Product, Status. I know that there is a
transpose function but I have A LOT of data to transpose and using this
function I have to manually transpose for each month and customer for up to
15 products which is very time consuming. I am wondering if there is a way
to automate this process. Also, for each division of the number of product
columns varies so whatever automation is recommended needs to be able to
adjust for the number of columns in a sheet.

Thanks!



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Converting columns into rows

Your instructions were perfect!! Thank you so much!!!

"Debra Dalgleish" wrote:

To reorganize the data, you can use the 'unpivot' technique described by
John Walkenbach:

http://j-walk.com/ss/excel/usertips/tip068.htm

Before you 'unpivot' the data, concatenate the data in the first two
columns (Date/Customer). For example:

1. Insert a blank column C, and enter a heading in row 1, e.g. "Info"
2. In row 2, enter the following formula, and copy down to all rows:
=A2& "^"&B2
3. Copy the formula to the end of the data
4. On a blank worksheet, select cell A1

Then, follow John Walkenbach's instructions to unpivot the data, using
column C and the columns to the right.

To split the concatenated column,
1. Move the Info column to the right end of the data
2. Select the Info column
3. Choose DataText to Columns
4. Choose Delimited, click Next
5. In the 'Other' box, type: ^
6. Click Finish
7. Return the info columns to the far left of the data


Manni wrote:
I have a mass amount of data that needs to be converted from columns to rows.
The columns are Date, Customer Name, Product 1, Product 2, Product 3, etc...
- in the product column is the status of each product for that time period.
I need to convert the Product columns into rows of data so that the columns
become Date, Customer Name, Product, Status. I know that there is a
transpose function but I have A LOT of data to transpose and using this
function I have to manually transpose for each month and customer for up to
15 products which is very time consuming. I am wondering if there is a way
to automate this process. Also, for each division of the number of product
columns varies so whatever automation is recommended needs to be able to
adjust for the number of columns in a sheet.

Thanks!



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting columns to rows [email protected] Excel Worksheet Functions 4 February 15th 07 11:13 PM
Converting text from rows to columns Phyllis B. Excel Worksheet Functions 3 May 2nd 06 06:49 PM
(Again) Converting rows to columns nickr1954 Excel Discussion (Misc queries) 4 January 28th 06 01:22 PM
Converting Columns to Rows Chris D'Onofrio Excel Worksheet Functions 1 March 30th 05 08:08 PM
Converting Rows to Columns? PaulFincannon Excel Discussion (Misc queries) 5 February 16th 05 11:26 PM


All times are GMT +1. The time now is 07:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"