Calculating Open Hours

Frank J

Board Regular
Joined
Feb 17, 2011
Messages
104
Office Version
  1. 365
Platform
  1. Windows
I'm trying to calculate how many hours a game is open and the correct date it closed on. We work our day from 2 am to 1:59 am but the exact times are never the same for each table as they must be counted individually.

The "Data Import" area is from a report I run and gives only the data shown, I need to reformat it and do the calculations to get the hours and minutes the tables are open.
The "26 hour clock" is an attempt to help do this but isn't a must if the formulas can be made to work.

In my current calculations you can see row 7 "BP 205" shows only 17 min but it's really 24 hours and 17 minutes. I've tried to create an adjusted time to account for the fact tables that close between midnight (00:00;00) and the time we count them are on recorded for the "Gaming Day" previous that "calendar day".

Any guidance and help is appreciated!
example 11.png
 
Format Last Column as [h]:mm:ss
Try this:
Book1
ABCDEFGHIJ
1Asset #Transaction TypeTrans IDYearMonthDayGaming Date TimeModified Date TimeOpen Hrs
2BJ 405Table Opener100002020103010/30/2020 21:1010/30/2020 21:10 
3Table Closer100012020103010/30/2020 1:4210/31/2020 1:424:31:52
4Table Opener100002020103110/31/2020 1:4210/31/2020 1:42 
5Table Closer100012020103110/31/2020 3:1410/31/2020 3:141:32:19
6Table Opener100002020103110/31/2020 21:0210/31/2020 21:02 
7Table Closer100012020103110/31/2020 1:3811/1/2020 1:384:36:45
8BJ 407Table Opener100002020103010/30/2020 22:0210/30/2020 22:02 
9Table Closer100012020103010/30/2020 1:4410/31/2020 1:443:42:03
10Table Opener100002020103110/31/2020 1:4410/31/2020 1:44 
11Table Closer100012020103110/31/2020 3:1010/31/2020 3:101:26:11
12Table Opener100002020103110/31/2020 21:0910/31/2020 21:09 
13Table Closer100012020103110/31/2020 1:4011/1/2020 1:404:30:35
14
Sheet1
Cell Formulas
RangeFormula
H2:H13H2=IF(AND(C2=10001,G2<G1),G2+1,G2)
I2:I13I2=IF(C2=10001,H2-H1,"")
 
Upvote 0
Solution

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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