ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Convert TimeStamp to Minutes (https://www.excelbanter.com/excel-worksheet-functions/213020-convert-timestamp-minutes.html)

EAB1977

Convert TimeStamp to Minutes
 
Hi Everyone,

I need to get the total amount of minutes between two dates which are
formatted as timestamps. I have a Start Date and a End Date. IWhat
function do I use, or, do I use VBA code to get what I want?

Thanks.

JE McGimpsey

Convert TimeStamp to Minutes
 
One way:

A1: Start timestamp
B1: End timestamp
C1: =(B1-A1)*1440

Since XL stores dates/times as fractional days, you need to multiply the
difference between date/times by 24 hours/day x 60 minutes/hour or 1440.


In article
,
EAB1977 wrote:

Hi Everyone,

I need to get the total amount of minutes between two dates which are
formatted as timestamps. I have a Start Date and a End Date. IWhat
function do I use, or, do I use VBA code to get what I want?

Thanks.


Gary''s Student

Convert TimeStamp to Minutes
 
With stamps in A2 and A3:
=ABS(A2-A3)*24*60 and format as Number
--
Gary''s Student - gsnu200819


"EAB1977" wrote:

Hi Everyone,

I need to get the total amount of minutes between two dates which are
formatted as timestamps. I have a Start Date and a End Date. IWhat
function do I use, or, do I use VBA code to get what I want?

Thanks.


EAB1977

Convert TimeStamp to Minutes
 
And to do days would be:

=ABS(A2-A3)*24 ?




All times are GMT +1. The time now is 04:12 AM.

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