Code to sum columns between certain rows

mlarobardi

New Member
Joined
Nov 10, 2013
Messages
3
For the spreadsheet below I need code to determine what rows to add for the subtotal for each week for each person listed. The rows will vary each time
Smith, Joan
Week: WK1
Visit
DateOMRPay ItemUMRateStartFinishTimeSubtotal
10/25/13GARGH0.00350.00
Totals for WK1: 0 Visit / 2 Admin35.170.00
Week: WK2
Visit
DateOMRPay ItemUMRateStartFinishTimeSubtotal
11/1/13GAFH0.0080.00
11/1/13GARGH0.0030.50.00
Totals for WK2: 0 Visit / 2 Admin38.500.00
Totals for Smith, Joan - 0 Visit / 4 Admin73.670.00
Hancock, John
Week: WK1
Visit
DateOMRPay ItemUMRateStartFinishTimeSubtotal
10/25/13GARGH1.004040.00
Totals for WK1: 0 Visit / 1 Admin40.0040.00
Week: WK2
Visit
DateOMRPay ItemUMRateStartFinishTimeSubtotal
11/1/13GARGH1.004141.00
Totals for WK2: 0 Visit / 2 Admin46.0041.00
Totals for Hancock, John: 0 Visit / 3 Admin86.0081.00
Harris, Lynn
Week: WK1
Visit
DateOMRPay ItemUMRateStartFinishTimeSubtotal
10/21/13SNRNPDNXH30.0006:0007:00130.00
10/21/13SNRNPDNXH30.0006:0007:00130.00
10/21/13SNRNPDNXH30.0007:0012:155.25157.50
10/21/13SNRNPDNXH30.0007:0012:155.25157.50
10/21/13SNRNPDNH20.0012:1515:453.570.00
10/21/13SNRNPDNXH30.0015:4519:003.2597.50
10/21/13SNRNPDNXH30.0015:4519:003.2597.50
10/24/13SNRN AMH23.1608:0016:108.17189.14
10/25/13SNRN AMH23.1608:0016:158.25191.07
10/25/13SNRNPDNXH30.0016:1523:006.75202.50
10/25/13SNRNPDNXH30.0016:1523:006.75202.50
Totals for WK1: 11 Visits 52.421,425.21
Week: WK2
Visit
DateOMRPay ItemUMRateStartFinishTimeSubtotal
11/1/13SNRNPDNXH30.0007:0016:009270.00
11/1/13SNRNPDNXH30.0007:0016:009270.00
10/28/13SNRN AMH23.1608:0014:006138.96
10/31/13SNRN AMH23.1608:0016:008185.28
Totals for WK2: 4 Visits 32.00864.24
Totals for Lynn Harrisl: 15 Visits 84.422,289.45

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I can't figure out how to edit this post. What I need to do is calculate the subtotal (Time & Subtotal columns) for each week for each employee then then total week 1 & 2. The current totals are not correct for all employees because I have deleted some lines from the original export.
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,840
Members
449,096
Latest member
Erald

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