ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   request for time interval worksheet function (https://www.excelbanter.com/excel-discussion-misc-queries/134366-request-time-interval-worksheet-function.html)

Zb Kornecki

request for time interval worksheet function
 
I create workbooks that measure multiple different intervals from over 30
different time stamps. I now calculate the interval manually typing in
formulas for subtracing dates and multpling to get the correct unit etc. I
was hoping someone has or would consider writing a worksheet function that
measures time intervals and will return either total minutes, hours and
minutes or decimal hours (1.25 hours). his wouls save me much time.
thank-you Zb

joel

request for time interval worksheet function
 
Function TimeDiff(MyTime1 As Date, MyTime2 As Date)

TimeDiff = (MyTime2 - MyTime1) * 24

End Function


"Zb Kornecki" wrote:

I create workbooks that measure multiple different intervals from over 30
different time stamps. I now calculate the interval manually typing in
formulas for subtracing dates and multpling to get the correct unit etc. I
was hoping someone has or would consider writing a worksheet function that
measures time intervals and will return either total minutes, hours and
minutes or decimal hours (1.25 hours). his wouls save me much time.
thank-you Zb



All times are GMT +1. The time now is 02:13 AM.

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