Solved

Convert Excel Column Headers to Rows

Posted on 2016-07-14
8
111 Views
Last Modified: 2016-07-18
I have an excel spreadsheet (Convert.xls) that has the due dates as column headers.  I need to create a row for each column header along with the data in column a of the spreadsheet (part number) and the value shown in the row for the header.  So in otherwords, if there are 10 column headers as dates, then I need to create 10 rows for the part number in column a.

See the spreadsheet (Desired.xls) attached for what the convert.xls should look like.

Thanks.
Convert.xlsx
desired.xlsx
0
Comment
Question by:maverick0728
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 14

Expert Comment

by:ThomasMcA2
ID: 41711311
Excel has a built-in function to do that. It's called Transpose.

To use it, copy your source data (the headers), click in the first cell for the new rows, select Paste Special, check the Transpose checkbox, then click OK.
0
 

Author Comment

by:maverick0728
ID: 41711346
I've tried that and it works, but I need to repeat the part number for each row created with a column header.  See the spreadsheet "Desired.xls" for what is needed.  Thanks.
0
 
LVL 14

Expert Comment

by:ThomasMcA2
ID: 41711392
It's the same process for multiple rows. Select H1 through BG2, copy, Paste Special with Transpose, then delete the zero rows.

Since it looks like you want more than just row 2 to get converted, you probably need a macro.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 7

Expert Comment

by:tomfarrar
ID: 41711397
If you have Excel 2010 or 2013, there is a tab add-in Power Query that can transpose the dates to rows for each part number.  So for instance if you have 10 columns with dates, and 10 rows now, the result would have 100 rows.  Is this what you are looking for?
0
 
LVL 7

Expert Comment

by:tomfarrar
ID: 41711402
See attached.
Copy-of-EE-1.xlsx
0
 
LVL 7

Assisted Solution

by:tomfarrar
tomfarrar earned 250 total points
ID: 41711453
Attached is your original spreadsheet with instructions and transformed data.
Copy-of-EE-1.xlsx
0
 
LVL 31

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 250 total points
ID: 41711703
Please follow the steps as shown in the demo video (link given below) to get the data in the desired format.

http://www.screencast.com/t/nP2Rja7nvrq
Convert.xlsx
0
 
LVL 7

Expert Comment

by:tomfarrar
ID: 41713618
Are you familiar with the Excel Power Query add-in?  I believe the answer is above, and Neeraj even provided a video on how to get the columns to rows.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question