Calculating total time between two number

rcocrane99

New Member
Joined
May 9, 2024
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Hey everyone, I'm working on a sheet where I can calculate time from batch 1 to batch 2 where we run our process through the day but shutdown over night and these batches carry forward prat way through each day.
1718337952102.png

So for example on the 12th at 1 pm we started batch 2 and on the 13th we started batch 3 but we were shutdown for 7 hrs (yes i know the math is simple on this one but we go through hundreds per month so), i need it to subtract the shutdown difference or ignore it and just subtract the time if we dont shutdown and it takes less that one days runtime.

Thanks everybody
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
If I understand correctly, you want to subtract 13/06/2014 at 14:00 and 12/06/2024 at 13:00. Then remove the the 7-hour shutdown on 13/06/2024 at 7:00. Is this correct?
 
Upvote 0
I have a feeling you haven't provided the entirety of what your actual data looks like, but based on what is in the OP you can try
Book1
ABCDEF
1Batch23
2Time Checked6/12/24 13:006/12/24 17:006/13/24 0:006/13/24 7:006/13/24 14:00
3Start and Shutdown timesStopStart
4
5Result18:00:00
Sheet1
Cell Formulas
RangeFormula
B5B5=LET(x,XLOOKUP(TRUE,B1:F1<>"",B2:F2,,,{1,-1})+XLOOKUP(TRUE,B3:F3<>"",B2:F2,0,,{-1,1}),SUM(x*{-1,1}))
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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