ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Elapsed time when separate cells contain time and separate date (https://www.excelbanter.com/new-users-excel/133663-elapsed-time-when-separate-cells-contain-time-separate-date.html)

Gnugs

Elapsed time when separate cells contain time and separate date
 
Have 2 pairs of cells representing two events -- a date and time for each
event stored as text with the date cell in form mm/dd/yyyy and the time cell
in form hh:mm xM. Need to find the elapsed time between the two events in
hours and minutes placed in separate cells.

Stefi

Elapsed time when separate cells contain time and separate date
 
Suppose your cells are arranged like this:
date time
A1 B1
A2 B2

Then enter in cell for hours
=INT(MOD((A2+B2-A1-B1),1)/(1/24))+INT((A2+B2-A1-B1)/1)*24

for minutes
=MOD(MOD((A2+B2-A1-B1),1),1/24)*24*60

Regards,
Stefi


€˛Gnugs€¯ ezt Ć*rta:

Have 2 pairs of cells representing two events -- a date and time for each
event stored as text with the date cell in form mm/dd/yyyy and the time cell
in form hh:mm xM. Need to find the elapsed time between the two events in
hours and minutes placed in separate cells.



All times are GMT +1. The time now is 11:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com