Solved

Convert Excel Column Headers to Rows

Posted on 2016-07-14
8
83 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
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
 
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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 28

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now