pivot table help

fastballfreddy

Board Regular
Joined
Jan 13, 2015
Messages
60
Office Version
  1. 2016
Platform
  1. Windows
I have 2 pivot tables that I'd like to be able to join in a certain view and not sure if it can be done or not. Looking for suggestions and maybe a pivot table isn't the best option so open to ideas.

I want to see Hour and Time (avaliable) on top with Jobs on the left side. Adding xl2bb of 2 pivot tables, data for the pivot table and format I'm looking to obtain (open to other ideas that may work as well).


Currently I have 2 pivot tables. One for the jobs done and the other for time.

Book2
ABCDEFGHIJKL
3Count of Job_
4Row Labels567891011121314Grand Total
501/03/202377878787766
6Job 1527
7Job 2224
8Job 3516
9Job 444
10Job 5178319
11Job 6487726
12(blank)
1301/04/20231720202013101010108138
14Job 233
15Job 513208344
16Job 81213631
17Job 9110710836
18Job317724
19(blank)
20Grand Total2427282721171817178204
21
28
29Sum of time_
30Row Labels567891011121314Grand Total
3101/03/20230:551:001:000:451:000:301:000:450:307:25
3201/04/20231:001:000:510:451:000:300:430:451:007:34
33Grand Total0:552:002:001:361:451:301:301:281:151:0014:59
Sheet3


Here is the data for the pivot table although I wasn't able to show both dates.

Book2
ABCDEFGHIJ
1IDJobdate stampnameDepttimehour 2hourmonthdate
21234Job 11/3/2023 05:09:00 AMCristina5101/03/2023
31235Job 11/3/2023 05:17:00 AMCristina5101/03/2023
41236Job 11/3/2023 05:25:00 AMCristina5101/03/2023
51237Job 11/3/2023 05:33:00 AMCristina5101/03/2023
61238Job 11/3/2023 05:41:00 AMCristina5101/03/2023
71239Job 21/3/2023 05:49:00 AMCristina5101/03/2023
81240Job 21/3/2023 05:57:00 AMCristina5101/03/2023
91241Job 21/3/2023 06:05:00 AMCristina6101/03/2023
101242Job 21/3/2023 06:13:00 AMCristina6101/03/2023
111243Job 31/3/2023 06:21:00 AMCristina6101/03/2023
121244Job 31/3/2023 06:29:00 AMCristina6101/03/2023
131245Job 31/3/2023 06:37:00 AMCristina6101/03/2023
141246Job 31/3/2023 06:45:00 AMCristina6101/03/2023
151247Job 31/3/2023 06:53:00 AMCristina6101/03/2023
161248Job 31/3/2023 07:01:00 AMCristina7101/03/2023
171249Job 11/3/2023 07:09:00 AMCristina7101/03/2023
181250Job 11/3/2023 07:17:00 AMCristina7101/03/2023
191251Job 41/3/2023 07:25:00 AMCristina7101/03/2023
201252Job 41/3/2023 07:33:00 AMCristina7101/03/2023
211253Job 41/3/2023 07:41:00 AMCristina7101/03/2023
221254Job 41/3/2023 07:49:00 AMCristina7101/03/2023
231255Job 51/3/2023 07:57:00 AMCristina7101/03/2023
241256Job 51/3/2023 08:05:00 AMCristina8101/03/2023
251257Job 51/3/2023 08:13:00 AMCristina8101/03/2023
261258Job 51/3/2023 08:21:00 AMCristina8101/03/2023
271259Job 51/3/2023 08:29:00 AMCristina8101/03/2023
281260Job 51/3/2023 08:37:00 AMCristina8101/03/2023
291261Job 51/3/2023 08:45:00 AMCristina8101/03/2023
301262Job 51/3/2023 08:53:00 AMCristina8101/03/2023
311263Job 51/3/2023 09:01:00 AMCristina9101/03/2023
321264Job 51/3/2023 09:09:00 AMCristina9101/03/2023
331265Job 51/3/2023 09:17:00 AMCristina9101/03/2023
341266Job 51/3/2023 09:25:00 AMCristina9101/03/2023
351267Job 51/3/2023 09:33:00 AMCristina9101/03/2023
361268Job 51/3/2023 09:41:00 AMCristina9101/03/2023
371269Job 51/3/2023 09:49:00 AMCristina9101/03/2023
381270Job 51/3/2023 09:57:00 AMCristina9101/03/2023
391271Job 51/3/2023 10:05:00 AMCristina10101/03/2023
401272Job 51/3/2023 10:13:00 AMCristina10101/03/2023
411273Job 51/3/2023 10:21:00 AMCristina10101/03/2023
421274Job 61/3/2023 10:29:00 AMCristina10101/03/2023
431275Job 61/3/2023 10:37:00 AMCristina10101/03/2023
441276Job 61/3/2023 10:45:00 AMCristina10101/03/2023
451277Job 61/3/2023 10:53:00 AMCristina10101/03/2023
461278Job 61/3/2023 11:01:00 AMCristina11101/03/2023
471279Job 61/3/2023 11:09:00 AMCristina11101/03/2023
481280Job 61/3/2023 11:17:00 AMCristina11101/03/2023
491281Job 61/3/2023 11:25:00 AMCristina11101/03/2023
501282Job 61/3/2023 11:33:00 AMCristina11101/03/2023
511283Job 61/3/2023 11:41:00 AMCristina11101/03/2023
521284Job 61/3/2023 11:49:00 AMCristina11101/03/2023
531285Job 61/3/2023 11:57:00 AMCristina11101/03/2023
541286Job 61/3/2023 12:05:00 PMCristina12101/03/2023
551287Job 61/3/2023 12:13:00 PMCristina12101/03/2023
561288Job 61/3/2023 12:21:00 PMCristina12101/03/2023
571289Job 61/3/2023 12:29:00 PMCristina12101/03/2023
581290Job 61/3/2023 12:37:00 PMCristina12101/03/2023
591291Job 61/3/2023 12:45:00 PMCristina12101/03/2023
601292Job 61/3/2023 12:53:00 PMCristina12101/03/2023
611293Job 61/3/2023 01:01:00 PMCristina13101/03/2023
621294Job 61/3/2023 01:09:00 PMCristina13101/03/2023
631295Job 61/3/2023 01:17:00 PMCristina13101/03/2023
641296Job 61/3/2023 01:25:00 PMCristina13101/03/2023
651297Job 61/3/2023 01:33:00 PMCristina13101/03/2023
661298Job 61/3/2023 01:41:00 PMCristina13101/03/2023
671299Job 61/3/2023 01:49:00 PMCristina13101/03/2023
6801/03/23CristinaDept ID 010:555:005101/03/2023
6901/03/23CristinaDept ID 011:006:006101/03/2023
7001/03/23CristinaDept ID 011:007:007101/03/2023
7101/03/23CristinaDept ID 010:458:008101/03/2023
7201/03/23CristinaDept ID 011:009:009101/03/2023
7301/03/23CristinaDept ID 010:3010:0010101/03/2023
7401/03/23CristinaDept ID 011:0011:0011101/03/2023
7501/03/23CristinaDept ID 010:4512:0012101/03/2023
7601/03/23CristinaDept ID 010:3013:0013101/03/2023
Sheet1
Cell Formulas
RangeFormula
H2:H67H2=HOUR(C2)
I2:I76I2=MONTH(C2)
J2:J76J2=TEXT(C2,"MM/DD/YYYY")
H68:H76H68=HOUR(G68)


This is how i'd like to have the pivot table.

Book2
ABCDEFGHIJK
1Hour5678910111213Grand Total
2Time0:551:001:000:451:000:301:000:450:307:25
301/03/202377878787766
4Job 1527
5Job 2224
6Job 3516
7Job 444
8Job 5178319
9Job 6487726
10(blank)
11Time1:001:000:510:451:000:300:430:451:007:34
1201/04/2023172020201310101018138
13Job 233
14Job 513208344
15Job 81213631
16Job 911071836
17Job317724
18(blank)
19Grand Total242728272117181725204
Sheet4
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Just a quick Question. In the Time row there are different figures 30, 45,1.00, where does this information come from?
 
Upvote 0
Great question and I should have clarified. The Time row is the time each hour they are available to work. For example, if they have a 30-minute meeting it will show 0:30 instead of 1:00.

For 1/3 at the 5am hour Cristina had 0:55 of available work time and she worked 5 of Job 1 and 2 of Job 2 during that time.

Hope that helps and thanks for reviewing.
 
Upvote 0
I think I figured out a solution. I updated the data and used conditional formatting to get the result I want. Probably not the best solution but it'll work.

PIVOT TABLE WORKS.xlsx
ABCDEFGHIJK
4Hour5678910111213Total
5Cristina242728272117181725205
601/03/202377878787766
7_Production0:551:001:000:451:000:301:000:450:307:25
8Job 1527
9Job 2224
10Job 3516
11Job 444
12Job 5178319
13Job 6487726
1401/04/2023172020201310101018138
15_Production1:001:000:510:451:000:300:430:451:007:34
16Job 233
17Job 513208344
18Job 81213631
19Job 911071836
20Job317724
PT
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B5:K20Expression=$A5="_Production"textNO
B3:B4Expression=A3="RTAM PROD"textNO




PIVOT TABLE WORKS.xlsx
ABCDEFGHIJ
1IDJobdate stampnameDepttesthour 2hourmonthdate
21234Job 11/3/2023 05:09:00 AMCristina15101/03/2023
31235Job 11/3/2023 05:17:00 AMCristina15101/03/2023
41236Job 11/3/2023 05:25:00 AMCristina15101/03/2023
51237Job 11/3/2023 05:33:00 AMCristina15101/03/2023
61238Job 11/3/2023 05:41:00 AMCristina15101/03/2023
71239Job 21/3/2023 05:49:00 AMCristina15101/03/2023
81240Job 21/3/2023 05:57:00 AMCristina15101/03/2023
91241Job 21/3/2023 06:05:00 AMCristina16101/03/2023
101242Job 21/3/2023 06:13:00 AMCristina16101/03/2023
111243Job 31/3/2023 06:21:00 AMCristina16101/03/2023
121244Job 31/3/2023 06:29:00 AMCristina16101/03/2023
131245Job 31/3/2023 06:37:00 AMCristina16101/03/2023
141246Job 31/3/2023 06:45:00 AMCristina16101/03/2023
151247Job 31/3/2023 06:53:00 AMCristina16101/03/2023
161248Job 31/3/2023 07:01:00 AMCristina17101/03/2023
171249Job 11/3/2023 07:09:00 AMCristina17101/03/2023
181250Job 11/3/2023 07:17:00 AMCristina17101/03/2023
191251Job 41/3/2023 07:25:00 AMCristina17101/03/2023
201252Job 41/3/2023 07:33:00 AMCristina17101/03/2023
211253Job 41/3/2023 07:41:00 AMCristina17101/03/2023
221254Job 41/3/2023 07:49:00 AMCristina17101/03/2023
231255Job 51/3/2023 07:57:00 AMCristina17101/03/2023
241256Job 51/3/2023 08:05:00 AMCristina18101/03/2023
251257Job 51/3/2023 08:13:00 AMCristina18101/03/2023
261258Job 51/3/2023 08:21:00 AMCristina18101/03/2023
271259Job 51/3/2023 08:29:00 AMCristina18101/03/2023
281260Job 51/3/2023 08:37:00 AMCristina18101/03/2023
291261Job 51/3/2023 08:45:00 AMCristina18101/03/2023
301262Job 51/3/2023 08:53:00 AMCristina18101/03/2023
311263Job 51/3/2023 09:01:00 AMCristina19101/03/2023
321264Job 51/3/2023 09:09:00 AMCristina19101/03/2023
331265Job 51/3/2023 09:17:00 AMCristina19101/03/2023
341266Job 51/3/2023 09:25:00 AMCristina19101/03/2023
351267Job 51/3/2023 09:33:00 AMCristina19101/03/2023
361268Job 51/3/2023 09:41:00 AMCristina19101/03/2023
371269Job 51/3/2023 09:49:00 AMCristina19101/03/2023
381270Job 51/3/2023 09:57:00 AMCristina19101/03/2023
391271Job 51/3/2023 10:05:00 AMCristina110101/03/2023
401272Job 51/3/2023 10:13:00 AMCristina110101/03/2023
411273Job 51/3/2023 10:21:00 AMCristina110101/03/2023
421274Job 61/3/2023 10:29:00 AMCristina110101/03/2023
431275Job 61/3/2023 10:37:00 AMCristina110101/03/2023
441276Job 61/3/2023 10:45:00 AMCristina110101/03/2023
451277Job 61/3/2023 10:53:00 AMCristina110101/03/2023
461278Job 61/3/2023 11:01:00 AMCristina111101/03/2023
471279Job 61/3/2023 11:09:00 AMCristina111101/03/2023
481280Job 61/3/2023 11:17:00 AMCristina111101/03/2023
491281Job 61/3/2023 11:25:00 AMCristina111101/03/2023
501282Job 61/3/2023 11:33:00 AMCristina111101/03/2023
511283Job 61/3/2023 11:41:00 AMCristina111101/03/2023
521284Job 61/3/2023 11:49:00 AMCristina111101/03/2023
531285Job 61/3/2023 11:57:00 AMCristina111101/03/2023
541286Job 61/3/2023 12:05:00 PMCristina112101/03/2023
551287Job 61/3/2023 12:13:00 PMCristina112101/03/2023
561288Job 61/3/2023 12:21:00 PMCristina112101/03/2023
571289Job 61/3/2023 12:29:00 PMCristina112101/03/2023
581290Job 61/3/2023 12:37:00 PMCristina112101/03/2023
591291Job 61/3/2023 12:45:00 PMCristina112101/03/2023
601292Job 61/3/2023 12:53:00 PMCristina112101/03/2023
611293Job 61/3/2023 01:01:00 PMCristina113101/03/2023
621294Job 61/3/2023 01:09:00 PMCristina113101/03/2023
631295Job 61/3/2023 01:17:00 PMCristina113101/03/2023
641296Job 61/3/2023 01:25:00 PMCristina113101/03/2023
651297Job 61/3/2023 01:33:00 PMCristina113101/03/2023
661298Job 61/3/2023 01:41:00 PMCristina113101/03/2023
671299Job 61/3/2023 01:49:00 PMCristina113101/03/2023
68_Production01/03/23CristinaDept ID 010:555:005101/03/2023
69_Production01/03/23CristinaDept ID 011:006:006101/03/2023
70_Production01/03/23CristinaDept ID 011:007:007101/03/2023
71_Production01/03/23CristinaDept ID 010:458:008101/03/2023
72_Production01/03/23CristinaDept ID 011:009:009101/03/2023
73_Production01/03/23CristinaDept ID 010:3010:0010101/03/2023
74_Production01/03/23CristinaDept ID 011:0011:0011101/03/2023
75_Production01/03/23CristinaDept ID 010:4512:0012101/03/2023
76_Production01/03/23CristinaDept ID 010:3013:0013101/03/2023
DATA
Cell Formulas
RangeFormula
H2:H67H2=HOUR(C2)
I2:I76I2=MONTH(C2)
J2:J76J2=TEXT(C2,"MM/DD/YYYY")
H68:H76H68=HOUR(G68)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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