How do I create a formula to calculate amounts of time elapsed in hours in Excel?
rickybaugh2000
2007-04-18 08:23:39 UTC
I'm trying to create a formula to produce the amount (in hours) elapsed. (example: Cell 1A is 9:00 AM, Cell 2A in 4:00 PM. The formula would be in cell 3A and the result would be 7.
I can only get it to produce the result in a "time" format.
Four answers:
anonymous
2007-04-18 08:31:21 UTC
Format Cells 1A and 2A as time.
Format Cell 3A as general then use the formula
=(1A-2A)*24
Navigator
2007-04-18 08:31:39 UTC
Select the cell where the results will be and do the following:
Format --> Cells
Make sure you're on the Number tab
Hghlight the Custom format
From the list of Types, choose h:mm
That gives you the difference between the two cells in hours and minutes. Changing the Type to h gives you just the hours.
Joy M
2007-04-18 08:30:15 UTC
Right click on the result cell and choose "Format Cells." Under Category, choose Custom. Type in h "hours." This will produce the number 7 followed by the word hours.
If you were finding the distance between two times that aren't right on the hour, you will follow the same steps, except in the Custom format, you would type: h "hours," m "minutes."
stiver
2016-12-26 18:16:24 UTC
for example: X - minutes (on your ex forty 5 minutes) Y - days (on your occasion 3 days) Your formulation is: =X * Y / 60 Your effect is in actuality: forty 5 * 3 / 60 = a hundred thirty five / 60 = 2.25 hours
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.