Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Time Calculations

Status
Not open for further replies.

DianeSp

Technical User
May 30, 2019
2
US
I would like to do a time calculation in Excel. I would like to enter a start time, and end time and have the formula calculate the difference returning a numeric decimal value. For example, I would enter a start time of 12:00 PM and an ending time of 1:30 PM and I want the return value to be 1.5.
 

[pre]
A B C
12:00 PM 1:30 PM [BLUE] =(B1-A1) * 24[/BLUE]
[/pre]
Assuming columns A and B are set as TIME (not text)


---- Andy

There is a great need for a sarcasm font.
 
Perfect! That did the job. Many thanks!
 
DianeSp,
Welcome to Tek-Tips [wavey2]. I hope you find this site valuable.

You should click the *Great Post! link in Andy's answer. It was quick, accurate, and even included TGML formatting for readability.



Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
Please share your solution so others can benefit.


---- Andy

There is a great need for a sarcasm font.
 
FYI, all date and time values are stated in units of days.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein
AD1D550E-FCB5-4AB6-A3C8-1F86CACE2554_ne1bcz.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top