Sum time over night

Simbor2

New Member
Joined
Apr 14, 2023
Messages
11
Platform
  1. Windows
Hi,
My shedule for my workers have worked so far but now there is a shift ending after midnight and I don't know how to fix it.
This is how it looks now. A formula to take a 30 min lunch away. The formula is in Swedish, but maybe still better to understand than a picture.

Timanställda schema 2023.xlsx
BCDEF
520:00
5313:0022:008:30Oskar
5413:0022:008:30Mohammed
5516:0001:00#########Amged
5616:0001:00#########Jesca
5716:0001:00#########Ali A
5816:0001:00#########Maya
590:00
Vecka 23
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F47:F58Cellcontains a blank value textNO
F59Cellcontains a blank value textNO
D36:D45,D61:D70,D72:D81,D14:D23,D3:D12,D25:D34,D47:D59Cell Value=0textNO
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
In this case, you should indicate which post resolved the issue and indicate that the issue is resolved. :biggrin:
 
Upvote 0
@Simbor2
I've found that always keeping a date with the time makes for better date/time math.
Below is your chart with a date/time component for your subtraction. The top looks like your worksheet but it is really the bottom worksheet with the date and time combined:
mr excel questions 29.xlsm
ABCDEFG
1Start TimeEnd Time0
213:00:0022:00:0009:00:00Oskar
313:00:0022:00:0009:00:00Mohammed
416:00:0001:00:0009:00:00Amged
516:00:0001:00:0009:00:00Jesca
616:00:0001:00:0009:00:00Ali A
716:00:0001:00:0009:00:00Maya
8
9
10
11Start DayStart TimeEnd DayEnd Time0
122023-04-2013:00:002023-04-2022:00:0009:00:00Oskar
132023-04-2013:00:002023-04-2022:00:0009:00:00Mohammed
142023-04-2016:00:002023-04-2101:00:0009:00:00Amged
152023-04-2016:00:002023-04-2101:00:0009:00:00Jesca
162023-04-2016:00:002023-04-2101:00:0009:00:00Ali A
172023-04-2016:00:002023-04-2101:00:0009:00:00Maya
18
Simbor2
 
Upvote 0

Forum statistics

Threads
1,215,364
Messages
6,124,507
Members
449,166
Latest member
hokjock

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