Help with time formula and calculating time

RandyD123

Active Member
Joined
Dec 4, 2013
Messages
289
Office Version
  1. 2016
Platform
  1. Windows
I need a little help with this sheet. My time start(E) and time end(F) column can be any time format. I'm just using what you see for a starting point. I need to have column G calculate the total hours based on my start and end time. I would also like column H and I to populate based on who made the entry and when they did it. If it's easier, both of those columns could be combined. This file will be on a work network (Sharepoint). Any help would be much appreciated. I hope I posted this correctly. Thank You



Book1.xlsm
BCDEFGHI
2
3STW (Person Working)STO (Person Not Working)Date Shift Trade Will OccurTime StartTime EndTotal Hours Traded OffPerson Who Made This EntryDate Person Made This Entry
4Name #08Name #0301/17/23040008004.0
5Name #03Name #0102/27/23120016304.5
6Name #04Name #0303/15/23150018303.5
7Name #06Name #0104/22/23043007303.0
8Name #02Name #0404/28/230730200012.5
9Name #08Name #0405/02/23113017306.0
10Name #05Name #0205/14/23033012008.5
11Name #01Name #0306/12/23180020002.0
12Name #07Name #0107/04/23170024007.0
13Name #06Name #0408/19/23033012008.5
14Name #71Name #0207/30/23033007304.0
15Name #25Name #0212/14/23130018005.0
16Name #22Name #0109/22/23080012004.0
17Name #08Name #0208/02/23033012008.5
18
19
20
21
22
Shift Trades
Cells with Data Validation
CellAllowCriteria
B4:C22List=Data!$B$4:$B$104
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Time.xlsm
ABCDEFG
1
2
3STW (Person Working)STO (Person Not Working)Date Shift Trade Will OccurTime StartTime EndTotal Hours Traded Off
4Name #08Name #03449434008004.00
5Name #03Name #0144984120016304.50
6Name #04Name #0345000150018303.50
7Name #06Name #01450384307303.00
8Name #02Name #0445044730200012.50
9Name #08Name #0445048113017306.00
10Name #05Name #024506033012008.50
11Name #01Name #0345089180020002.00
12Name #07Name #0145111170024007.00
13Name #06Name #044515733012008.50
14Name #71Name #02451373307304.00
15Name #25Name #0245274130018005.00
16Name #22Name #014519180012004.00
17Name #08Name #024514033012008.50
1aa
Cell Formulas
RangeFormula
G4:G17G4=(--TEXT(LEFT(F4,4),"00\:00")-TEXT(LEFT(E4,4),"00\:00"))*24
 
Upvote 0
Time.xlsm
ABCDEFG
1
2
3STW (Person Working)STO (Person Not Working)Date Shift Trade Will OccurTime StartTime EndTotal Hours Traded Off
4Name #08Name #03449434008004.00
5Name #03Name #0144984120016304.50
6Name #04Name #0345000150018303.50
7Name #06Name #01450384307303.00
8Name #02Name #0445044730200012.50
9Name #08Name #0445048113017306.00
10Name #05Name #024506033012008.50
11Name #01Name #0345089180020002.00
12Name #07Name #0145111170024007.00
13Name #06Name #044515733012008.50
14Name #71Name #02451373307304.00
15Name #25Name #0245274130018005.00
16Name #22Name #014519180012004.00
17Name #08Name #024514033012008.50
18
1aa
Cell Formulas
RangeFormula
G4:G17G4=(TEXT(LEFT(F4,4),"00\:00")-TEXT(LEFT(E4,4),"00\:00"))*24
 
Upvote 0
Time.xlsm
ABCDEFG
1
2
3STW (Person Working)STO (Person Not Working)Date Shift Trade Will OccurTime StartTime EndTotal Hours Traded Off
4Name #08Name #03449434008004.00
5Name #03Name #0144984120016304.50
6Name #04Name #0345000150018303.50
7Name #06Name #01450384307303.00
8Name #02Name #0445044730200012.50
9Name #08Name #0445048113017306.00
10Name #05Name #024506033012008.50
11Name #01Name #0345089180020002.00
12Name #07Name #0145111170024007.00
13Name #06Name #044515733012008.50
14Name #71Name #02451373307304.00
15Name #25Name #0245274130018005.00
16Name #22Name #014519180012004.00
17Name #08Name #024514033012008.50
1aa
Cell Formulas
RangeFormula
G4:G17G4=(TEXT(F4,"00\:00")-TEXT(E4,"00\:00"))*24
 
Last edited:
Upvote 0
Try =(TEXT(F4,"00\:00")-TEXT(E4,"00\:00"))*24

Sorry for the numerous posts. I thought that I was editing my first post but new posts were created.

Which suggestion(s) did you try.

You could enter the time as time not as text. 16:00 or with the Time function.
 
Upvote 0
Solution
Try =(TEXT(F4,"00\:00")-TEXT(E4,"00\:00"))*24

Sorry for the numerous posts. I thought that I was editing my first post but new posts were created.

Which suggestion(s) did you try.

You could enter the time as time not as text. 16:00 or with the Time function.
Yes I did that one and it seems to work perfectly. Thank you. Any insight on the other 2 columns?
 
Upvote 0
Any insight on the other 2 columns?
I would also like column H and I to populate based on who made the entry and when they did it.

Sorry No
You could search for automatic stamp of username and date/time.
 
Upvote 0
Yes I did that one and it seems to work perfectly. Thank you.
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,087
Messages
6,123,046
Members
449,092
Latest member
ikke

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