Solved

Convert Pivot Table Data

Posted on 2015-02-11
2
97 Views
Last Modified: 2015-02-11
I have a worksheet that contains the columns: Person ID code, Name, Location. Each person has at least one location, but many have multiple locations. People with multiple locations have their ID code & name duplicated in subsequent rows, The different location is then stored. For example:

ID Code Name         Location
12345    Bloggs, Joe London
12345    Bloggs, Joe Manchester
67890    Smith, Jim  Manchester
67890    Smith, Jim  Southampton

What I want to do is convert the layout so it is :

ID Code Name           Location1      Location2            Location3
12345    Bloggs, Joe   London          Manchester
67890    Smith, Jim    Manchester   Southampton

I have created a pivot table which has grouped the people with their locations easily enough. But what I cannot figure out next is how to export the pivot table so that each element in the pivot table report occupies one row in a new worksheet.
0
Comment
Question by:Paul Gardner
2 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40603023
You can't - directly. You can do it in SQL Server PIVOT, but not in Excel. It's for counting/summing/averaging numbers, not text.

Therefore, you need to do a lookup - see the attached.
EE150211.xlsx
0
 

Author Closing Comment

by:Paul Gardner
ID: 40603344
Thank for your reply, that has worked perfectly. It took a while to step through the various formulas to realise how it all works. But I think I understand it now, so the challenge will be able to recreate it next time I have a similar requirement.
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TT Auto Dashboard 13 101
Need help with excel question, fill in cell below category? 7 48
Index Match Formula VBA 6 51
Formula returning #N/A 9 32
Meetings to discuss business process can waste time, and often do .  The meeting's dialog can get confusing when participants have different professional perspectives and backgrounds.  A jointly-developed process picture helps wade through the confu…
Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

756 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