Computer Learning Zone CLZ Access Excel Word Windows

Better to be uneducated than educated by your government.

-Penn Jillette
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Back to Excel: Separating Time & Date    Comments List
Upload Images   Link   Email  

John Mosher 

17 years ago
I've been struggling with this myself because I have a database that was exporting an elapsed time as a date and time. I figured out the following single cell solution.

Assuming the date and time is in cell A1 use the following formula =MOD(A1,1). You can then format the results with whatever time format you want.

This works because the MOD function computes the remainder after dividing by the number to the right of the comma. In this case dividing by 1 leaves only the numbers to the right of the decimal.

In Lauren's example this leaves a decimal of 0.2565. When formatted with the appropriate time function you get the format Lauren is looking for.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Excel: Separating Time & Date.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 2/7/2025 4:46:54 AM. PLT: 0s