Code to summarize two similarly formatted tabs

alishern

New Member
Joined
Dec 9, 2017
Messages
28
[FONT=&quot]Hello,[/FONT]
[FONT=&quot]I have two tabs (Performance Period 1 [PP1] and Performance Period 2 [PP2]) with identical headers (range: B14:H14) and formats. They have two number columns (range: F14:H14) as well. Each table has over 1000 lines of data. Column A is left blank. the data on both tabs start with column B. [/FONT]
[FONT=&quot]I want the two tabs consolidated into one Performance Period Summary [PPS], with duplicates removed and I want B14:H14 summarized (sumif'd). The two tables may have duplicate data.
[/FONT]

[FONT=&quot]
[/FONT]

[FONT=&quot]Below are the three tabs:[/FONT]
[FONT=&quot]PERFORMANCE PERIOD1 tab - Data of performance period 1[/FONT]
[FONT=&quot]PERFORMANCE PERIOD2 tab - Data of performance period 2[/FONT]
[FONT=&quot]PERFORMANCE PERIOD SUMMARY tab - summary of performance period 1 and performance period 2. The table should not have duplicates and columns F and G should have totals of the two tables.

Thank you in advance.[/FONT]

[FONT=&quot]
[/FONT]

PERFORMANCE PERIOD1 tab
BCDEFGH
14PERF SITECHARGE CODEJOB TITLEJOB LEVELTOTAL HOURSTOTAL HEADCOUNTVENDOR
15USA000110.10.01Utility WorkerLEV IV35025ABX
16USA000210.10.01Utility Specialist ILEV II1353ABX
17USA000310.10.01Utility Specialist ILEV II803ABX
18USA000410.10.01Utility Specialist IILEV III9010ABX
19USA000510.10.01Utility SupervisorLEV I1601ABX
20USA000510.10.02Admin Specialist ILEV IV2054X-TREME
21USA000510.10.02Admin Specialist IILEV II2507X-TREME
22USA000510.10.02Admin Specialist IIILEV II29510X-TREME

<tbody style="box-sizing: inherit; border: 0px; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased; text-size-adjust: none;">
</tbody>
PERFORMANCE PERIOD2 tab
BCDEFGH
14PERF SITECHARGE CODEJOB TITLEJOB LEVELTOTAL HOURSTOTAL HEADCOUNTVENDOR
15USA000110.10.01Utility WorkerLEV IV35025ABX
16USA000210.10.01Utility Specialist ILEV II1353ABX
17USA000310.10.01Utility Specialist ILEV II803ABX
18USA000410.10.01Utility Specialist IILEV III9010ABX
19USA000510.10.01Utility SupervisorLEV I1601ABX
20USA000510.10.02Admin Specialist ILEV IV2054X-TREME
21USA000510.10.02Admin Specialist IILEV II2507X-TREME
22USA000510.10.02Admin Specialist IIILEV II29510X-TREME
23USA000310.10.03Admin Specialist IVLEV III34013X-TREME
24USA000310.10.03Construction SupervisorLEV I38516JINDO
25USA000310.10.03Construction ForemanLEV IV43019JINDO
26USA000310.10.03EstimatorLEV II47522JINDO
27USA000310.10.04Estimating SupervisorLEV II52025JINDO
28USA000310.10.04EstimatorLEV III56528SPARK
29USA000310.10.04EstimatorLEV I61031SPARK

<tbody style="box-sizing: inherit; border: 0px; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased; text-size-adjust: none;">
</tbody>
PERFORMANCE PERIOD SUMMARY tab
BCDEFGH
14PERF SITECHARGE CODEJOB TITLEJOB LEVELTOTAL HOURSTOTAL HEADCOUNTVENDOR
15USA000110.10.01Utility WorkerLEV IV70050ABX
16USA000210.10.01Utility Specialist ILEV II2706ABX
17USA000310.10.01Utility Specialist ILEV II1606ABX
18USA000410.10.01Utility Specialist IILEV III18020ABX
19USA000510.10.01Utility SupervisorLEV I3202ABX
20USA000510.10.02Admin Specialist ILEV IV4108X-TREME
21USA000510.10.02Admin Specialist IILEV II50014X-TREME
22USA000510.10.02Admin Specialist IIILEV II59020X-TREME
23USA000310.10.03Admin Specialist IVLEV III34013X-TREME
24USA000310.10.03Construction SupervisorLEV I38516JINDO
25USA000310.10.03Construction ForemanLEV IV43019JINDO
26USA000310.10.03EstimatorLEV II47522JINDO
27USA000310.10.04Estimating SupervisorLEV II52025JINDO
28USA000310.10.04EstimatorLEV III56528SPARK
29USA000310.10.04EstimatorLEV I61031SPARK

<tbody style="box-sizing: inherit; border: 0px; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased; text-size-adjust: none;">
</tbody>
[FONT=&quot]
[/FONT]

****** id="cke_pastebin" style="position: absolute; top: 166px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
PERFORMANCE PERIOD1 tab
BCDEFGH
14PERF SITECHARGE CODEJOB TITLEJOB LEVELTOTAL HOURSTOTAL HEADCOUNTVENDOR
15USA000110.10.01Utility WorkerLEV IV35025ABX
16USA000210.10.01Utility Specialist ILEV II1353ABX
17USA000310.10.01Utility Specialist ILEV II803ABX
18USA000410.10.01Utility Specialist IILEV III9010ABX
19USA000510.10.01Utility SupervisorLEV I1601ABX
20USA000510.10.02Admin Specialist ILEV IV2054X-TREME
21USA000510.10.02Admin Specialist IILEV II2507X-TREME
22USA000510.10.02Admin Specialist IIILEV II29510X-TREME

<tbody style="box-sizing: inherit; border: 0px; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased; text-size-adjust: none;">
</tbody>
PERFORMANCE PERIOD2 tab
BCDEFGH
14PERF SITECHARGE CODEJOB TITLEJOB LEVELTOTAL HOURSTOTAL HEADCOUNTVENDOR
15USA000110.10.01Utility WorkerLEV IV35025ABX
16USA000210.10.01Utility Specialist ILEV II1353ABX
17USA000310.10.01Utility Specialist ILEV II803ABX
18USA000410.10.01Utility Specialist IILEV III9010ABX
19USA000510.10.01Utility SupervisorLEV I1601ABX
20USA000510.10.02Admin Specialist ILEV IV2054X-TREME
21USA000510.10.02Admin Specialist IILEV II2507X-TREME
22USA000510.10.02Admin Specialist IIILEV II29510X-TREME
23USA000310.10.03Admin Specialist IVLEV III34013X-TREME
24USA000310.10.03Construction SupervisorLEV I38516JINDO
25USA000310.10.03Construction ForemanLEV IV43019JINDO
26USA000310.10.03EstimatorLEV II47522JINDO
27USA000310.10.04Estimating SupervisorLEV II52025JINDO
28USA000310.10.04EstimatorLEV III56528SPARK
29USA000310.10.04EstimatorLEV I61031SPARK

<tbody style="box-sizing: inherit; border: 0px; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased; text-size-adjust: none;">
</tbody>
PERFORMANCE PERIOD SUMMARY tab
BCDEFGH
14PERF SITECHARGE CODEJOB TITLEJOB LEVELTOTAL HOURSTOTAL HEADCOUNTVENDOR
15USA000110.10.01Utility WorkerLEV IV70050ABX
16USA000210.10.01Utility Specialist ILEV II2706ABX
17USA000310.10.01Utility Specialist ILEV II1606ABX
18USA000410.10.01Utility Specialist IILEV III18020ABX
19USA000510.10.01Utility SupervisorLEV I3202ABX
20USA000510.10.02Admin Specialist ILEV IV4108X-TREME
21USA000510.10.02Admin Specialist IILEV II50014X-TREME
22USA000510.10.02Admin Specialist IIILEV II59020X-TREME
23USA000310.10.03Admin Specialist IVLEV III34013X-TREME
24USA000310.10.03Construction SupervisorLEV I38516JINDO
25USA000310.10.03Construction ForemanLEV IV43019JINDO
26USA000310.10.03EstimatorLEV II47522JINDO
27USA000310.10.04Estimating SupervisorLEV II52025JINDO
28USA000310.10.04EstimatorLEV III56528SPARK
29USA000310.10.04EstimatorLEV I61031SPARK

<tbody style="box-sizing: inherit; border: 0px; margin: 0px; padding: 0px; vertical-align: top; -webkit-font-smoothing: antialiased; text-size-adjust: none;">
</tbody>
</body>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,215,472
Messages
6,125,005
Members
449,203
Latest member
Daymo66

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