Translating a horizontal data set to a pivot table friendly vertical format

TaxSloth

New Member
Joined
Oct 25, 2022
Messages
11
Office Version
  1. 2021
Platform
  1. MacOS
So I'm working with a horizontal table that tracks a count of calls per week per employee, currently formatted as

Name1/3-1/71/10-1/141/17-1/211/24-1/281/31-2/42/7-2/11
EMPLOYEE A
249​
292​
107​
212​
226​
218​
EMPLOYEE B
425​
447​
214​
203​
419​
352​
EMPLOYEE C
429​
459​
397​
382​
362​
372​
EMPLOYEE D
106​
103​
68​
80​
79​
97​


And I'm attempting to shift the format to this -


EMPLOYEE NAMEWEEKCALLS MADE
EMPLOYEE A1/3-1/7
249​
EMPLOYEE B1/3-1/7
425​
EMPLOYEE C1/3-1/7
429​
EMPLOYEE D1/3-1/7
106​
EMPLOYEE A
1/10-1/14
292​
EMPLOYEE B
1/10-1/14
447​
EMPLOYEE C
1/10-1/14
459​
EMPLOYEE D
1/10-1/14
103​


The problem I keep running into is current excel can't seem to learn that pattern, so autofill won't work. I've got a functional offset function for translating the Week over using Offset, but I can't figure out how to fill in the call data since it needs to shift rows and columns. I also want this vertical variant table to update with the new data input into the original horizontal version, which is limiting me to using cell references instead of just direct pasting the numbers one set at a time.

So I'm looking for one of two solutions, ideally -

1. An easier way to shift the original horizontal table into a pivot table friendly vertical table than what I'm currently doing

or

2. A formula that will refer to a different sheet, fill in X amount of rows in column Y, then shift to column Y+1 and post X amount of rows again. I need the pattern to repeat 52 times since this is a yearly report by work week and I'm working with a set of 9 employees.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Power Query: Select all the date columns --> unPivot Columns.

Book1
ABCDEFG
1Name1/3-1/71/10-1/141/17-1/211/24-1/281/31-2/42/7-2/11
2EMPLOYEE A249292107212226218
3EMPLOYEE B425447214203419352
4EMPLOYEE C429459397382362372
5EMPLOYEE D10610368807997
6
7NameAttributeValue
8EMPLOYEE A1/3-1/7249
9EMPLOYEE A1/10-1/14292
10EMPLOYEE A1/17-1/21107
11EMPLOYEE A1/24-1/28212
12EMPLOYEE A1/31-2/4226
13EMPLOYEE A2/7-2/11218
14EMPLOYEE B1/3-1/7425
15EMPLOYEE B1/10-1/14447
16EMPLOYEE B1/17-1/21214
17EMPLOYEE B1/24-1/28203
18EMPLOYEE B1/31-2/4419
19EMPLOYEE B2/7-2/11352
20EMPLOYEE C1/3-1/7429
21EMPLOYEE C1/10-1/14459
22EMPLOYEE C1/17-1/21397
23EMPLOYEE C1/24-1/28382
24EMPLOYEE C1/31-2/4362
25EMPLOYEE C2/7-2/11372
26EMPLOYEE D1/3-1/7106
27EMPLOYEE D1/10-1/14103
28EMPLOYEE D1/17-1/2168
29EMPLOYEE D1/24-1/2880
30EMPLOYEE D1/31-2/479
31EMPLOYEE D2/7-2/1197
Sheet8
 
Upvote 0
Power Query: Select all the date columns --> unPivot Columns.

Book1
ABCDEFG
1Name1/3-1/71/10-1/141/17-1/211/24-1/281/31-2/42/7-2/11
2EMPLOYEE A249292107212226218
3EMPLOYEE B425447214203419352
4EMPLOYEE C429459397382362372
5EMPLOYEE D10610368807997
6
7NameAttributeValue
8EMPLOYEE A1/3-1/7249
9EMPLOYEE A1/10-1/14292
10EMPLOYEE A1/17-1/21107
11EMPLOYEE A1/24-1/28212
12EMPLOYEE A1/31-2/4226
13EMPLOYEE A2/7-2/11218
14EMPLOYEE B1/3-1/7425
15EMPLOYEE B1/10-1/14447
16EMPLOYEE B1/17-1/21214
17EMPLOYEE B1/24-1/28203
18EMPLOYEE B1/31-2/4419
19EMPLOYEE B2/7-2/11352
20EMPLOYEE C1/3-1/7429
21EMPLOYEE C1/10-1/14459
22EMPLOYEE C1/17-1/21397
23EMPLOYEE C1/24-1/28382
24EMPLOYEE C1/31-2/4362
25EMPLOYEE C2/7-2/11372
26EMPLOYEE D1/3-1/7106
27EMPLOYEE D1/10-1/14103
28EMPLOYEE D1/17-1/2168
29EMPLOYEE D1/24-1/2880
30EMPLOYEE D1/31-2/479
31EMPLOYEE D2/7-2/1197
Sheet8
I'm operating on a Mac, and as I understand it I currently lack access to the majority of PowerQuery features. If this is one of the functions I have access to, I do not know where to find it.
 
Upvote 0
I'm afraid you are right. Do you have access to office.com or Teams?
 
Upvote 0
You may be able to use some Power Query functionalities there, but I'm not sure (and unable to test it at the moment).
 
Upvote 0
You may be able to use some Power Query functionalities there, but I'm not sure (and unable to test it at the moment).
It does not appear that I can, unfortunately. So I'll likely need an alternate suggestion for shifting the caller data.
 
Upvote 0

Forum statistics

Threads
1,214,416
Messages
6,119,386
Members
448,891
Latest member
tpierce

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