ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Diference between two hours in Minutes (https://www.excelbanter.com/excel-worksheet-functions/193513-diference-between-two-hours-minutes.html)

jcheko

Diference between two hours in Minutes
 
I need to fin how many minutes are between two hours...for example:

10:30am to 1:30pm

I have tried to subtract both times and then custom format the cell [mm]
which will work......but I am trying to make another calculation with that
result and it gives me a number that really is not what I expect......it
should be a simple subtraction 180 minus whatever number.

is there an easier way to get the total minutes between to times without
having to custom format the cell?.....thanks

Pete_UK

Diference between two hours in Minutes
 
Try it this way:

=(B1-A1)*24*60

and then format the cell as General or as Number. This assumes that B1
is the later time than A1.

Hope this helps.

Pete

On Jul 2, 9:32*pm, jcheko wrote:
I need to fin how many minutes are between two hours...for example:

10:30am to 1:30pm

I have tried to subtract both times and then custom format the cell [mm]
which will work......but I am trying to make another calculation with that
result and it gives me a number that really is not what I expect......it
should be a simple subtraction 180 minus whatever number.

is there an easier way to get the total minutes between to times without
having to custom format the cell?.....thanks



jcheko

Diference between two hours in Minutes
 
it worked thanks....

"Pete_UK" wrote:

Try it this way:

=(B1-A1)*24*60

and then format the cell as General or as Number. This assumes that B1
is the later time than A1.

Hope this helps.

Pete

On Jul 2, 9:32 pm, jcheko wrote:
I need to fin how many minutes are between two hours...for example:

10:30am to 1:30pm

I have tried to subtract both times and then custom format the cell [mm]
which will work......but I am trying to make another calculation with that
result and it gives me a number that really is not what I expect......it
should be a simple subtraction 180 minus whatever number.

is there an easier way to get the total minutes between to times without
having to custom format the cell?.....thanks




Pete_UK

Diference between two hours in Minutes
 
You're welcome - thanks for feeding back.

Pete

On Jul 2, 10:17*pm, jcheko wrote:
it worked thanks....



All times are GMT +1. The time now is 07:54 AM.

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