cell i16 contains 7:55 PM
cell g16 contains 5:35 PM
What formula will compute the number of hours and minutes (formatted as "2 hrs 20 mins") between the times in i16 and c16?
cell i16 contains 7:55 PM
cell g16 contains 5:35 PM
What formula will compute the number of hours and minutes (formatted as "2 hrs 20 mins") between the times in i16 and c16?
Last edited by gcotterl; 10-14-2017 at 03:08 PM.
=$i16-$g16
format as required
Last edited by daddylonglegs; 10-14-2017 at 03:14 PM.
Audere est facere
Formula:Please Login or Register to view this content.
<----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left
If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.
daddylonglegs: The result is 2:20 AM not 2 hrs 20 mins
Jacc: The result is #VALUE!
shg: A# contains:
###############################################################################################################################################################################################################################################################
try:
=TEXT(I16-G16,"h:mm")
that should result in 2:20
however, it will only be a result in text. if your intention is to use it for calculation purposes later on, you would need to:
enter the formula =i16-g16 and:
press control+1
choose the number tab, go to "TIME"
and choose an option without the am/pm on it.
that should work.
Last edited by LBUG; 10-14-2017 at 04:27 PM.
thanks. The result is 2:20
This is why we usually request people to post a sample workbook.
I assumed your data was strings, not numerical value formatted as time.
gcotterl - Awesome!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks