Calculate time between start and finish minus the lunch break

paulalex93

New Member
Joined
Nov 10, 2023
Messages
8
Office Version
  1. 365
Platform
  1. MacOS
Hello, I am trying to figure out a way to calculate the time between start and finish for shifts, I managed to do that but I need one where from those hours it subtract automatically 30 minutes. Right now I am using =TEXT(<CELL1> - <CELL2>, "h:mm").
Can someone help me please.
For e.g the hours are all starting with 07:30 and ending in different times, like 18:00 - but for this hours it returns 10:30 and I need to subtract automatically the 30 minutes break.
Thank you!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hello, I am trying to figure out a way to calculate the time between start and finish for shifts, I managed to do that but I need one where from those hours it subtract automatically 30 minutes. Right now I am using =TEXT(<CELL1> - <CELL2>, "h:mm").
Can someone help me please.
For e.g the hours are all starting with 07:30 and ending in different times, like 18:00 - but for this hours it returns 10:30 and I need to subtract automatically the 30 minutes break.
Thank you!
=TEXT(<CELL1> - <CELL> - TIME(0,30,0),"h:mm")
 
Upvote 0
sorry, something else I cannot figure out, is there a formula that would return the hours (after it subtracted the 30 minutes) as a number? The reason is that those hours I need to multiply by an number in another column. Thank you!
 
Upvote 0
sorry, something else I cannot figure out, is there a formula that would return the hours (after it subtracted the 30 minutes) as a number? The reason is that those hours I need to multiply by an number in another column. Thank you!
=hour(<CELL1> - <CELL> - TIME(0,30,0))
 
Upvote 0
this does not work, it returns 00:00 in the cell... the previous one worked and returned the number but without the half hour if there was..
 
Upvote 0
one example is this: cell1 has: 07:30 and cell 2 has 18:00 - which returns 10 hours but as 10:00 from that formula and I would need just 10. The first formula with =hour works in this case but if I have let's say 07:30 and 17:30 it should return 9.5.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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