Question - Data extrat from one workbook into another

John_Jay

New Member
Joined
Apr 23, 2019
Messages
1
Good Day excel Guru's!

I am a novice with excel but highly addicted!

My issue is this:

I run a small business and I would like to track my payroll from several departments into an easy to analyze workbook. The trick is that ADP generates a weekly report in Excel format (which ill try to attach). The cells I would like to pull in (Hours total and Dollars for each department) dont always list in the same cells each week (as rows are added based on employee roster changes the cell addresses move down)

My question is:
  1. What is the best way for me to macro in the details I am looking for? Id like to open a pre-designed workbook, choose the report to extract the data from and simply import said data. I would also like to house the reports in shared dropbox if possible as well.

Looking for the best way that is basically fool proof and just works.

Many Thanks!

Department Detail Report
Date Range: 04/14/2019 - 04/20/2019 and Employee Effective As Of : 04/23/2019
Worked Department: 000100
Department Last NameFirst Name Position ID
Worked Department Pay Code Hours Dollars
000100 Employee1 QCD000067
000100 REGULAR-Regular28.72$287.17
Subtotal28.72$287.17
000100 Employee1 QCD000077
000100 REGULAR-Regular37.37$411.03
Subtotal37.37$411.03
000100 Employee1 QCD000062
000100 REGULAR-Regular12.52$125.17
Subtotal12.52$125.17
Total for: 00010078.61$823.37
ADPPowered by Automatic Data Processing, Inc.
Prepared On: 04/23/2019 06:10:48 PMPage 1 of 8
Department Detail Report
Date Range: 04/14/2019 - 04/20/2019 and Employee Effective As Of : 04/23/2019
Worked Department: 000150
Department Last NameFirst Name Position ID
Worked Department Pay Code Hours Dollars
000150 Employee1 QCD000092
000150 REGULAR-Regular20.67$248.00
Subtotal20.67$248.00
000150 Employee1 QCD000091
000150 REGULAR-Regular17.23$172.33
Subtotal17.23$172.33
Total for: 00015037.90$420.33
ADPPowered by Automatic Data Processing, Inc.
Prepared On: 04/23/2019 06:10:48 PMPage 2 of 8
Department Detail Report
Date Range: 04/14/2019 - 04/20/2019 and Employee Effective As Of : 04/23/2019
Worked Department: 000200
Department Last NameFirst Name Position ID
Worked Department Pay Code Hours Dollars
000200 Employee1 QCD000063
000200 REGULAR-Regular4.95$49.50
Subtotal4.95$49.50
000200 Employee1 QCD000069
000200 REGULAR-Regular21.03$210.33
Subtotal21.03$210.33
Total for: 00020025.98$259.83
ADPPowered by Automatic Data Processing, Inc.
Prepared On: 04/23/2019 06:10:48 PMPage 3 of 8
Department Detail Report
Date Range: 04/14/2019 - 04/20/2019 and Employee Effective As Of : 04/23/2019
Worked Department: 000300
Department Last NameFirst Name Position ID
Worked Department Pay Code Hours Dollars
000300 Employee1 QCD000089
000300 REGULAR-Regular35.62$356.17
Subtotal35.62$356.17
000300 Employee1 QCD000051
000300 REGULAR-Regular37.00$370.00
Subtotal37.00$370.00
000300 Employee1 QCD000060
000300 OVERTIME-Overtime0.03$0.50
000300 REGULAR-Regular40.02$400.17
Subtotal40.05$400.67
000300 Employee1 QCD000056
000300 OVERTIME-Overtime0.13$2.00
000300 REGULAR-Regular39.95$399.50
Subtotal40.08$401.50
000300 Employee1 QCD000057
000300 OVERTIME-Overtime0.08$1.25
000300 REGULAR-Regular40.05$400.50
Subtotal40.13$401.75
000300 Employee1 QCD000061
000300 OVERTIME-Overtime0.05$0.75
000300 REGULAR-Regular39.95$399.50
Subtotal40.00$400.25
Total for: 000300232.88$2,330.34
ADPPowered by Automatic Data Processing, Inc.
Prepared On: 04/23/2019 06:10:48 PMPage 4 of 8
Department Detail Report
Date Range: 04/14/2019 - 04/20/2019 and Employee Effective As Of : 04/23/2019
Worked Department: 000400
Department Last NameFirst Name Position ID
Worked Department Pay Code Hours Dollars
000400 Employee1 QCD000082
000400 REGULAR-Regular27.47$274.67
Subtotal27.47$274.67
Total for: 00040027.47$274.67
ADPPowered by Automatic Data Processing, Inc.
Prepared On: 04/23/2019 06:10:48 PMPage 5 of 8
Department Detail Report
Date Range: 04/14/2019 - 04/20/2019 and Employee Effective As Of : 04/23/2019
Worked Department: 000500
Department Last NameFirst Name Position ID
Worked Department Pay Code Hours Dollars
000500 Employee1 QCD000070
000500 REGULAR-Regular32.33$323.33
Subtotal32.33$323.33
Total for: 00050032.33$323.33
ADPPowered by Automatic Data Processing, Inc.
Prepared On: 04/23/2019 06:10:48 PMPage 6 of 8
Department Detail Report
Date Range: 04/14/2019 - 04/20/2019 and Employee Effective As Of : 04/23/2019
Worked Department: 000600
Department Last NameFirst Name Position ID
Worked Department Pay Code Hours Dollars
000600 Employee1 QCD000081
000600 REGULAR-Regular37.30$634.10
Subtotal37.30$634.10
Total for: 00060037.30$634.10
ADPPowered by Automatic Data Processing, Inc.
Prepared On: 04/23/2019 06:10:48 PMPage 7 of 8
Department Detail Report
Date Range: 04/14/2019 - 04/20/2019 and Employee Effective As Of : 04/23/2019
Pay Code Summary
Hours Dollars
REGULAR-Regular78.61$823.37
Total for Worked Department: 00010078.61$823.37
REGULAR-Regular37.90$420.33
Total for Worked Department: 00015037.90$420.33
REGULAR-Regular25.98$259.83
Total for Worked Department: 00020025.98$259.83
OVERTIME-Overtime0.29$4.50
REGULAR-Regular232.59$2,325.84
Total for Worked Department: 000300232.88$2,330.34
REGULAR-Regular27.47$274.67
Total for Worked Department: 00040027.47$274.67
REGULAR-Regular32.33$323.33
Total for Worked Department: 00050032.33$323.33
REGULAR-Regular37.30$634.10
Total for Worked Department: 00060037.30$634.10
Grand Total472.47$5,065.97
ADPPowered by Automatic Data Processing, Inc.
Prepared On: 04/23/2019 06:10:48 PMPage 8 of 8

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,214,591
Messages
6,120,426
Members
448,961
Latest member
nzskater

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