Calculating total hours against a target

willanss

New Member
Joined
Sep 1, 2016
Messages
9
Hi everyone. I thought I had a simple problem but after much cursing I'm giving in and asking for help. I need to count the total amount of hours training agents have received and show how much is still required to meet their target of 15 hours.

The raw data looks like this
Agent 12:30
Agent 11:00
Agent 24:00
Agent 23:20
Agent 21:00

I've set up a pivot that shows the total hours each agent has done, but I can't get a value for how many hours are needed to bring them up to 15. I did get this to work by having an external calculation that references the pivot, but this isn't really the nicest way of doing it. I've tried adding a calculated field, but this isn't working correctly either.

Does anyone have any ideas? I'm stumped.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Not sure what version of Excel you are using , if latest version, then you can use UNIQUE()

Book7
ABCDEFG
1AgentHoursAgentTimeHours left
2Agent 12:30Agent 13:3011:30
3Agent 11:00Agent 28:206:40
4Agent 24:00
5Agent 23:20
6Agent 21:00
Sheet1
Cell Formulas
RangeFormula
E2:E3E2=UNIQUE(A2:A6,FALSE,FALSE)
F2:F3F2=SUMIF($A$2:$A$6,E2,$B$2:$B$6)
G2:G3G2=TIMEVALUE("15:00")-F2
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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