Using a PivotTable to create a simplified table

Moosles

New Member
Joined
Apr 1, 2021
Messages
23
Office Version
  1. 2019
Platform
  1. Windows
I'm trying to covert a table of data into a more usable format - currently the data is laid out like this, with the hours for each resource broken down by task as shown below:

Task NameResource 1Resource 2Resource 3Resource 4Resource 5Resource 6
Task #16103
Task #283
Task #32.58
Task #441
Task #542

Obviously this is a horrible layout of data to work with, so I want to simplify it to something more along the lines of the following:

Task NameResourceHours
Task #1Resource 26
Task #1Resource 310
Task #1Resource 63
Task #2Resource 18
Task #2Resource 43
Task #3Resource 32.5
Task #3Resource 28
Task #4Resource 34
Task #4Resource 51
Task #5Resource 24
Task #5Resource 42

I could do this easily enough using an array formula, but the source data table is massive so this would slow the rest of my workbook down drastically which I want to avoid if possible - also it would mean that I would have to include every possible combination of Task Name and Resource Number in the table, so the output would be huge too (with most of the rows being zero). Instead I thought using a PivotTable to arrange the data in the desired format would be doable, but I can't seem to work out a method to do this. How would I go about doing this?

Thanks in advance!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Use Power Query - it's a simple unpivot step.
 
Upvote 0
Solution
Hi Rory,

Thanks for this, it took a bit of experimenting to work out how to use Power Query, but this worked perfectly. Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,708
Members
452,994
Latest member
Janick

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