I need a formula to put in a cell in Excel.
It is a time formula for tracking hours worked
first cell would be start time of shift say 21:30 hours and end time of shift would be 05:30 hours a 8 hour period. However some times the start is 23:27 an end is 02:26 hours and since most start stop times start in one 24 hour period and end in a different 24 hour period.
Any help would be appreciated
Thanks
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Excel Formula
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Excel Formula
- This topic has 6 replies, 3 voices, and was last updated 24 years, 4 months ago.
AuthorTopicDJC
GuestJanuary 3, 2001 at 5:17 pm #1767379Viewing 0 reply threadsAuthorReplies-
WScpod
AskWoody Lounger -
DJC
GuestJanuary 3, 2001 at 9:03 pm #1774673Hello
I tried that but it did not work but I thank you it seems to be on the right track.
In cell G42 I have the time of 23:00
In Cell G43 I have the time 07:00
I need Cell G44 to have a formula that computes the hours and minutes worked in this case 8 hours. In a case of some one working 7 hours and 15 minutes it should reflect 7.25 hours worked. Remember I am using a 24 clock for time and many of the workers work from one 24 hour period in to the next 24 hour period. as in from 21:30 to 05:30 hours
Again thanks for any help you can give.
It is truly appreciated -
WSLeif
AskWoody LoungerJanuary 3, 2001 at 9:16 pm #1774675=(24 – StartTime)+EndTime seems to give the correct result but formatted as 07:15 not 7.25
I’ve just written some macro code to import workers times from a CSV, total them, add a tea-break allowanceetc. Formatting the cells for correct display (i.e. hh:mm) just did not work for me – in frustration I ended up using everything as strings and extracting the values before and after the “:”
Still, I’ve got a working solution so I’m happy. -
WScpod
AskWoody LoungerJanuary 4, 2001 at 1:45 am #1774684To subtract two time values with the result in hours and minutes: (8:30 – eight hours and thirty minutes)
=1-StartTime+EndTime
Format this cell as timeTo subtract two time values with the result in hours and decimal fraction of hours (8.5 eight hours and thiry minutes):
=HOUR(1-StartTime+EndTime) +MINUTE(1-StartTime+EndTime)/60
Format this cell as Number. -
DJC
Guest -
WSLeif
AskWoody Lounger
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
You can’t handle me
by
Susan Bradley
47 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
1 hour, 45 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
2 hours, 52 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
3 hours, 3 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
3 hours, 16 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
3 hours, 21 minutes ago -
Lumma malware takedown
by
EyesOnWindows
10 hours, 35 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
12 hours, 9 minutes ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
12 hours, 3 minutes ago -
Meet Gemini in Chrome
by
Alex5723
16 hours, 8 minutes ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
16 hours, 17 minutes ago -
Trump signs Take It Down Act
by
Alex5723
1 day ago -
Do you have a maintenance window?
by
Susan Bradley
11 hours, 25 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
2 hours, 28 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 3 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
1 day, 8 hours ago -
hibernate activation
by
e_belmont
1 day, 12 hours ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
1 day, 16 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
1 day, 19 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
1 day, 19 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
15 hours, 29 minutes ago -
Out of band for Windows 10
by
Susan Bradley
2 days ago -
Giving UniGetUi a test run.
by
RetiredGeek
2 days, 7 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
2 days, 14 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
10 hours, 29 minutes ago -
Auto Time Zone Adjustment
by
wadeer
2 days, 19 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
2 days, 16 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
16 hours, 20 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
1 day, 9 hours ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
9 hours, 58 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.