Need help regarding working hours calculation

Sampat

New Member
Joined
Jan 2, 2011
Messages
26
I have excel containing door access of some people as 7C_ODCU_DR02_IN_RDR for a time indicating moving in of the person & 7C_ODCU_DR01_OUT_RDR for a time indicating moving out.

Now I need to calculate the total time every person spent inside the office. (that means, time between 1st in & 1st out + time between 2nd time in & 2nd time out and so on)

I tried to make html with the supplied add in, but with my Excel 2007, I'm unable to do so. So, uploading a screenshot. Apologies for the inconvenience.

n5pro3.jpg
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Assuming there is always an OUT time for each IN time then you can get your total time with a formula like this

=SUMIF(A:A,B:B,"7C_ODCU_DR0?_OUT_RDR",D:D,"Sengupta, Sampat")-SUMIF(A:A,B:B,"7C_ODCU_DR0?_IN_RDR",D:D,"Sengupta, Sampat")

format result cell as [h]:mm
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,678
Members
452,937
Latest member
Bhg1984

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