Forum Discussion
Casey Mims
Oct 03, 2018Copper Contributor
How to summarize time in/time out data to see employee hours worked
Hi all, I have been given a rather large output file that I'd like help with summarizing. The file lists when an employee has clocked in and out of the building. I'd like to be able to summarize ...
Casey Mims
Oct 05, 2018Copper Contributor
Thanks again Lorenzo!
For the first column, is there an easier way to fill in the dates on each row besides manually? My actual file has >1000 rows, and there are 5 files. Yikes!
Also, is there a way I can autofill the formula in Column E down the rows? When I autofill currently, it puts the sum on each row. I'd like the sum to only show up on the row where a new date first appears in Column A, like in your attached example.
Lorenzo Kim
Oct 06, 2018Bronze Contributor
here is a VBA to help you fill down the formula from C3 down to the last row.
try this on a test sample - save as macro enabled. (.xlsm)
hope this helps
thanks..
Sub FillDownFromC3()
Application.ScreenUpdating = False
mlrc = Cells(Rows.Count, "B").End(xlUp).Row
Range("C3:C" & mlrc).FillDown
Application.ScreenUpdating = True
End Sub
- Lorenzo KimOct 06, 2018Bronze Contributorpress ALT F8 to open Macro Box then Run it.