How do I total up a Military time card including deducting lunch?

RudeBoy

Active Member
Joined
Feb 2, 2003
Messages
431
Office Version
  1. 365
Platform
  1. Windows
My cells are:
Time In
Out To Lunch
In From Lunch
Time Out

For Military format I am using 00\;00

Helpppppppppppppppp
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Ok I am getting CLOSER
I used this to get the Total for the Military time but I still need to take the hour off for lunch =J20-G20+(G20>J20)

G20=08:00 H20=13:00 I20=14:00 J20=17:00 so the formula calculated Military time & came up with 9 hrs which is correct. So now I need to somehow get the Lunch in there with the H20 & I20. Helpppppppppppppppp Thanks Take Care
 
Upvote 0
.
Or this :



[TABLE="class: head"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[TD]
D
[/TD]
[TD]
E
[/TD]
[TD]
F
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]
Time In
[/TD]
[TD]
Out Lunch
[/TD]
[TD]
In Lunch
[/TD]
[TD]
Time Out
[/TD]
[TD][/TD]
[TD]
Total Hrs
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]
8:00​
[/TD]
[TD]
12:00​
[/TD]
[TD]
12:30​
[/TD]
[TD]
16:30​
[/TD]
[TD]
=​
[/TD]
[TD]
8:00​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]
8:15​
[/TD]
[TD]
12:10​
[/TD]
[TD]
12:52​
[/TD]
[TD]
17:34​
[/TD]
[TD]
=​
[/TD]
[TD]
8:37​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]
9:10​
[/TD]
[TD]
11:45​
[/TD]
[TD]
12:26​
[/TD]
[TD]
16:15​
[/TD]
[TD]
=​
[/TD]
[TD]
6:24​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
=​
[/TD]
[TD]
0:00​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
=​
[/TD]
[TD]
0:00​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]
In F17 :
[/TD]
[TD]=SUM(D17-A17)-(C17-B17)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]



Formula:
Code:
=SUM(D17-A17)-(C17-B17)

Edit ranges as required.
 
Upvote 0
This Worked Thanks =MOD(J20-I20,1)+MOD(H20-G20,1)
Take Care
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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