Formula to input times from another sheet

Excelexcel86

Board Regular
Joined
Feb 28, 2023
Messages
99
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
the first sheet is ware house times and dates teh
Screenshot 2023-03-02 155234.png
second sheet is where i want to calculate the times.







DATEDAYSTARTTIMEENDTIMEDAYTIME HOURSDAYTIME MINUTES
06/02/2023​
Mon​
6:30​
14:30​
8:00​
480.00​
07/02/2023​
Tue​
6:30​
14:30​
8:00​
480.00​
08/02/2023​
Wed​
6:30​
14:30​
8:00​
480.00​
09/02/2023​
Thu​
6:30​
14:30​
8:00​
480.00​
10/02/2023​
Fri​
6:00​
11:00​
5:00​
300.00​
11/02/2023​
Sat​
0:00​
24:00​
24:00​
1440.00​
12/02/2023​
Sun​
0:00​
24:00​
24:00​
1440.00​
13/02/2023​
Mon​
6:30​
14:30​
8:00​
480.00​
14/02/2023​
Tue​
6:30​
14:30​
8:00​
480.00​
15/02/2023​
Wed​
6:30​
14:30​
8:00​
480.00​
16/02/2023​
Thu​
6:30​
14:30​
8:00​
480.00​
17/02/2023​
Fri​
6:00​
11:00​
5:00​
300.00​
18/02/2023​
Sat​
0:00​
24:00​
24:00​
1440.00​
19/02/2023​
Sun​
0:00​
24:00​
24:00​
1440.00​
20/02/2023​
Mon​
6:30​
14:30​
8:00​
480.00​








Date and Time entered warehouseDate and time exited warehousetime was in warehouse work hours onlytotal time
06/02/2023 10:2007/02/2023 06:20
06/02/2023 11:0007/02/2023 06:40
06/02/2023 12:2507/02/2023 06:10
07/02/2023 09:2507/02/2023 10:20
07/02/2023 09:3507/02/2023 14:40
4.55​
5.05​
07/02/2023 10:5508/02/2023 02:15
07/02/2023 11:0008/02/2023 06:15
03:30​
19:40​
07/02/2023 12:5507/02/2023 19:50
07/02/2023 14:0008/02/2023 06:25
08/02/2023 09:4008/02/2023 12:00
08/02/2023 09:5008/02/2023 15:20
08/02/2023 10:1509/02/2023 04:00
08/02/2023 10:3009/02/2023 00:15
08/02/2023 10:4508/02/2023 19:40
08/02/2023 11:4008/02/2023 18:15
08/02/2023 11:4508/02/2023 16:45
09/02/2023 07:3009/02/2023 10:00
09/02/2023 10:2009/02/2023 12:50
09/02/2023 11:0009/02/2023 20:30
09/02/2023 13:2009/02/2023 18:10
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
What are the 'manual' calculations you used in the bottom worksheet to get the time in warehouse and total time calculations. ?
 
Upvote 0
Them I just typed in as 11.00 in the morning is in work time and it was still there past 14.30 so I just wrote it in as it should be 3.30 it also didn’t go into the next day start time so no more hours was needed to be added .I’m struggling with a formula to calculate all of this without having to manually work this out every time
 
Upvote 0
i just need a basic formula. End Time minus Start Time...with adjustments for lunch break (how long is lunch break, and is there an amount of hours that must happen before a lunchbreak can be subtracted. Will a start to end time ever be more than 24 hours?
Them I just typed in as 11.00 in the morning is in work time and it was still there past 14.30 so I just wrote it in as it should be 3.30 it also didn’t go into the next day start time so no more hours was needed to be added .I’m struggling with a formula to calculate all of this without having to manually work this out every time
 
Upvote 0
There is no break times to be included and the start times and end times are always going to be the same for every week
 
Upvote 0
okay. not sure if this is what you want or not:
'
mr excel questions 12.xlsm
ABCDEFGHIJ
1DATEDAYSTART TIMEEND TIMEDAYTIME HOURSDAYTIME MINUTESHoursMinutes
22023-02-06Mon06:3014:3008:004808.0000000480.0000000
32023-02-07Tue06:3014:3008:004808.0000000480.0000000
42023-02-08Wed06:3014:3008:004808.0000000480.0000000
52023-02-09Thu06:3014:3008:004808.0000000480.0000000
62023-02-10Fri06:0011:0005:003005.0000000300.0000000
72023-02-11Sat00:0000:0000:0000.00000000.0000000
82023-02-12Sun00:0000:0000:0000.00000000.0000000
92023-02-13Mon06:3014:3008:004808.0000000480.0000000
102023-02-14Tue06:3014:3008:004808.0000000480.0000000
112023-02-15Wed06:3014:3008:004808.0000000480.0000000
122023-02-16Thu06:3014:3008:004808.0000000480.0000000
132023-02-17Fri06:0011:0005:003005.0000000300.0000000
142023-02-18Sat00:0000:0000:0000.00000000.0000000
152023-02-19Sun00:0000:0000:0000.00000000.0000000
162023-02-20Mon06:3014:3008:004808.0000000480.0000000
17
18
19
20Date and Time entered warehouseDate and time exited warehousetime was in warehouse work hours onlyTime as decimal HoursTime as decimal minutes
21
222023-02-06 06:302023-02-06 14:3008:00:008.00000000480
232023-02-07 06:302023-02-07 14:3008:00:008.00000000480
242023-02-08 06:302023-02-08 14:3008:00:008.00000000480
252023-02-09 06:302023-02-09 14:3008:00:008.00000000480
262023-02-10 06:002023-02-10 11:0005:00:005.00000000300
272023-02-11 00:002023-02-11 00:0000:00:000.000000000
282023-02-12 00:002023-02-12 00:0000:00:000.000000000
292023-02-13 06:302023-02-13 14:3008:00:008.00000000480
302023-02-14 06:302023-02-14 14:3008:00:008.00000000480
312023-02-15 06:302023-02-15 14:3008:00:008.00000000480
322023-02-16 06:302023-02-16 14:3008:00:008.00000000480
332023-02-17 06:002023-02-17 11:0005:00:005.00000000300
342023-02-18 00:002023-02-18 00:0000:00:000.000000000
352023-02-19 00:002023-02-19 00:0000:00:000.000000000
362023-02-20 06:302023-02-20 14:3008:00:008.00000000480
37
Sheet18
Cell Formulas
RangeFormula
H2:H16H2=(IF(C2>D2,1,0)+D2-C2)*24
I2:I16I2=(IF(C2>D2,1,0)+D2-C2)*24*60
A22:A36A22=A2+C2
B22:B36B22=A2+IF(C2>D2,1,0)+D2
C22:C36C22=B22-A22
D22:D36D22=C22*24
E22:E36E22=C22*24*60
 
Upvote 0
Hi the bottom chart time in work hours only is where I need the end hours to be from the hours times from the top sheet what formula is this ? Thanks for you help so far
 
Upvote 0
Hi the bottom chart time in work hours only is where I need the end hours to be from the hours times from the top sheet what formula is this ? Thanks for you help so far


i'm sorry, I don't understand. Can you take what I have and put what values you want to see in another column? (and tell me how you want it caclulated... Cell(??) + Cell(??) etc.
 
Upvote 0
Date and Time entered warehouse
Date and time exited warehouse
time was in warehouse work hours only
06/02/2023 10:2006/02/2023 10:20use a formula so the set hours that are in the top sheet calculates the hours that item entered warehouse and exited
06/02/2023 10:2006/02/2023 10:20
08/02/2023 10:20 am08/02/2023 14.50 pma formula should calculate this to 4hrs 10 minutes because the shift finished at 14.30 .
so the formula goes in this cell to take all the info from the first sheet that then looks at the first 2 columns here and calculates

when i say sheets they are on separate tabs one called ware house times and the other is the data which is this one
 
Upvote 0

Forum statistics

Threads
1,224,620
Messages
6,179,928
Members
452,949
Latest member
beartooth91

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