Payroll and Time without a colon

mdsmith000

New Member
Joined
Nov 27, 2013
Messages
3
So I have timesheet that is working pretty awesome however for data entry I want to be able to not have to use the Colon :)) when entering time. I figured how to do that, but it does not add my time up correctly when I changed it.


I currently use =MOD(C6-C5,1)*24 to add the hours up, and my two cells are formated at "Time" 13:30

Thanks
Employee #
Friday
Employee Name
11/15
IN:
14:00
OUT:
22:00
HRS:
8

<TBODY>
</TBODY>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try this in place of you original MOD formula: =MOD(TEXT(C6,"00\:00")+0-TEXT(C5,"00\:00")+0,1)*24
What it does is put the 1400 and 2200 back into the time format before doing the calculation. HTH, Slink
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,286
Members
449,218
Latest member
Excel Master

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