How do I create a pivot that loops back on itself?

naninamu

New Member
Joined
Sep 21, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi - I'm not sure if this is possible but here's my scenario.
I have a simple file with data in the following form:

UserName | User Dept | ManagerName | Manager Dept

I'm trying to create a pivot table to represent the org structure, ultimately to drill right down to work out which Departments sit under various Executive Managers (they can have many)

Column 1 is the list of Manager's names
Column 2 is their Department
Column 3 is the UserName of everyone who reports to them
Column 4 is the dept of those Users

The issue is I then want to repeat this - ie somehow transform Column 3 to now be Manager's names, so I can then drag in the User's names beside them, then change those User's into Managers - and repeat until a person does not have anyone reporting to them.

is there anyway to "convert" the column from being a list of Users to a list of Managers? Or am I going about this the wrong way?

Thanks in advance!!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top