Time

  • Thread starter Thread starter Neves
  • Start date Start date
N

Neves

My problem is that I have mins that look like 10020 total mins which are mins
a forklift has been running I need to take that number and subtract it from
another number like it and format it in to hours
 
Try

=INT((A2-A1)/60)&" Hrs "& (MOD((A2-A1),60))&" mins"

Where A1 is start minutes
A2 is end minutes

Mike
 
Another way if you want to do further calculations on the time

=TIME(INT((A2-A1)/60),(MOD((A2-A1),60)),0)

Format as [hh]:mm

Mike
 
Hi,

The wrong answer!!

My first formula was correct but I messed up on the second by not checking
it properly. thanks for the correction.

Mike



David Biddulph said:
So if A1 is the OP's 10020 minutes and A2 is 20000 minutes, what answer does
your formula give?
What does =(A2-A1)/(60*24) give, formatted as [h]:mm ?
--
David Biddulph

Mike H said:
Another way if you want to do further calculations on the time

=TIME(INT((A2-A1)/60),(MOD((A2-A1),60)),0)

Format as [hh]:mm

Mike

Mike H said:
Try

=INT((A2-A1)/60)&" Hrs "& (MOD((A2-A1),60))&" mins"

Where A1 is start minutes
A2 is end minutes

Mike

:

My problem is that I have mins that look like 10020 total mins which
are mins
a forklift has been running I need to take that number and subtract it
from
another number like it and format it in to hours
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Converting Time in a number 1
Displaying time gaps 6
Subtracting Dates 10
Subtracting minutes in an +IF formula 13
Access Convert a decimal time to hours and minutes 2
Convert decimal to hr.mm 3
2 questions. 4
years-months-days-hours 5

Back
Top