HELP WITH IMPORTING CLOCKING INTO EXCEL

Newguy1924

New Member
Joined
Apr 13, 2021
Messages
13
Office Version
  1. 2013
Platform
  1. Windows
Hi all, I have my clock in times on an excel workbook, in list format, I need to calculate all my hours worked. The problem is that some days I clocked out for lunch break other days I didnt, some days I clocked out for tea time, some days I didnt. Some morning I forgot to clock in and others I forgot to clock out, is there a way to calculate all this taking into consideration that some days have 6 clock times and other have only 2?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi Newguy1924,

If your clock times include an indicator as to whether it's a Clock In or Clock Out then with some assumptions as to normal start/break/end times you could calculate an approximation. Without that then any approximation with the missing data would be extremely inaccurate.
 
Upvote 0
Then post some sample data of at least a week, preferably using XL2BB or if not then copy and paste text (NOT an image).
Supply your usual start time, break time and duration, end time and I'll put something together.
 
Upvote 0
Ok, will do that in a minute, does it make thigs mire difficult if my lunch times are not a set time but rather random times I had time to clock out? I hope not. Please and thank you so much!
 
Upvote 0
Hi, I could not do it using xl2bb as I am at work and these pc's are full of crap when downloading items, hope the below helps.




1000 1000 CHARLES MILLS 2019/06/01 07:03 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/01 20:25 1 1 1 Out
1000 1000 CHARLES MILLS 2019/06/02 07:52 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/02 17:00 1 1 1 Out
1000 1000 CHARLES MILLS 2019/06/03 08:45 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/03 08:46 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/03 21:00 1 1 1 Out
1000 1000 CHARLES MILLS 2019/06/04 08:33 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/04 20:12 1 1 1 Out
1000 1000 CHARLES MILLS 2019/06/05 08:39 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/05 20:09 1 1 1 Out
1000 1000 CHARLES MILLS 2019/06/06 08:25 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/06 12:15 1 1 2 Break
1000 1000 CHARLES MILLS 2019/06/06 13:00 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/06 20:16 1 1 1 Out
1000 1000 CHARLES MILLS 2019/06/07 07:41 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/07 21:01 1 1 1 Out
1000 1000 CHARLES MILLS 2019/06/08 07:54 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/08 18:27 1 1 1 Out
1000 1000 CHARLES MILLS 2019/06/10 08:29 1 1 0 In
1000 1000 CHARLES MILLS 2019/06/10 20:09 1 1 1 Out
 
Upvote 0
T202104a.xlsm
ABCDEF
11-Jun-1907:03In
21-Jun-1920:25Out
32-Jun-1907:52InRate$10.00
42-Jun-1917:00OutTime104.53
53-Jun-1908:46InTotal$1,045.33
63-Jun-1921:00Out
74-Jun-1908:33In
84-Jun-1920:12Out
95-Jun-1908:39In
105-Jun-1920:09Out
116-Jun-1908:25In
126-Jun-1912:15Out Break
136-Jun-1913:00In
146-Jun-1920:16Out
157-Jun-1907:41In
167-Jun-1921:01Out
178-Jun-1907:54In
188-Jun-1918:27Out
1910-Jun-1908:29In
2010-Jun-1920:09Out
1f
Cell Formulas
RangeFormula
F4F4=(SUMPRODUCT(--(LEFT(C1:C20,3)="Out"),B1:B20)-SUMPRODUCT(--(LEFT(C1:C20,3)="In"),B1:B20))*24
F5F5=F3*F4


This was completed with assumptions including
-data is in a Text field
- you edited out the anomalies
I used Data Text to Columns
You could complete time calculation for each date change in a separate column and then sum the time.

We all volunteers on the forum. People have included the following to help posters.


One thing you must keep in mind when you ask a question in a forum... the people you are asking to help you know absolutely nothing about your data, absolutely nothing about how it is laid out in the workbook, absolutely nothing about what you want done with it and absolutely nothing about how whatever it is you want done is to be presented back to you as a result... you must be very specific about describing each of these areas, in detail, and you should not assume that we will be able to "figure it out" on our own. Remember, you are asking us for help... so help us to be able to help you by providing the information we need to do so, even if that information seems "obvious" to you (remember, it is only obvious to you because of your familiarity with your data).

Is the data in one column or several columns?
Which data is text and which parts are real numbers?
Are the dates/times text or real numbers N.B. today is April 14 2021; Excel recognizes this as number 44300.
Are you removing the anomalies before the calculation.
What is the expected result with the data (indicative example)?
It is very helpful if the post is done with XL2BB.
 

Attachments

  • 1618454523763.png
    1618454523763.png
    44.1 KB · Views: 5
Upvote 0
Thanks for the feedback

You may want to read a recent post
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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