Convert column values to rows

Punchin83

New Member
Joined
Mar 3, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I have a table that has calls from hundreds of employees through 3 media types. Each employee currently has 3 rows in the table, one for each media type. In the first column is the Media, second is the agent name, and in the third is the amount of interactions that agent has had on that media type. What I'm trying to do is change that to a table with the agent name first, then media 1, media 2, and media 3 columns with the respective values per column/row. I have spent hours trying to figure out index/match(with AND) or the merge in Power query. I even tried Pivot tables, but I am in way over my head. Can anybody help?

From this:
MediaAgentCount
voiceJoe13
chatJoe5
emailJoe7
voiceGrace12
chatGrace15
emailGrace0
voiceMatt1
chatMatt17
emailMatt15

To this:
AgentVoiceChatEmail
Joe1357
Grace12150
Matt11715
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Book3
ABCDEFGH
1MediaAgentCountSum of CountColumn Labels
2voiceJoe13Row Labelschatemailvoice
3chatJoe5Grace15012
4emailJoe7Joe5713
5voiceGrace12Matt17151
6chatGrace15
7emailGrace0
8voiceMatt1
9chatMatt17
10emailMatt15
Sheet2


Bring your data into the Data Model (Insert Pivot Table) and Pivot your data
 

Attachments

  • Screenshot 2023-01-19 200650.jpg
    Screenshot 2023-01-19 200650.jpg
    41.4 KB · Views: 3
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,790
Members
449,468
Latest member
AGreen17

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