Assuming start time is in A1 and finish time in B1. You need to know
that Excel stores times as fractions of a 24-hour day, so 12 hours is
stored internally as 0.5, 6 hours as 0.25. Thus, any answer you get
which is in Excel time format needs to be multiplied by 24 and by 60
(and the cell formatted as number) if you want it to be in minutes.
Further, in the situation where the start time appears to be larger
than the finish time because you have gone through midnight, you need
to add 1 to any subtraction of the times to account for this. So, this
leads to (one of many ways of doing it):
=IF(A1>B1,B1-A1+1,B1-A1)*24*60
Format the cell as General or as Number.
Hope this helps.
Pete
On Dec 8, 8:38 pm, Mcspore <Mcsp...@discussions.microsoft.com> wrote:
> I cannot, for the life of me, figure out how to make a cell read time in
> total minutes. I am trying to read the amount of time elapsed in minutes.
> For example, I start running a sample at 18:32 (24 hour clock) and stops at
> 21:43. I can get Excel to calculate the difference to 3:11 (3 hours and 11
> mins) but I need it in terms of minutes (191 mins). I also cannot find out
> how to get excel to calculate time elapsed of any kind if it changes days.
> For example, if I start a sample at 22:32 and it ends at 01:43 (once again
> 191 mins) excel gets confused.
|