#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default Time in Minutes

This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,173
Default Time in Minutes

Karen

=(((G5-C5)*60)*24)

Will give you 43. If you are using the number in a calc after that then
custom format (FormatCells...Custom) and enter 0 "mins"

If you are not using the result then add to the formula

=(((G5-C5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default Time in Minutes

Thank you for your help - I used =(((G5-C5)*60)*24)&" mins" and it worked
great.
I did a paste special and pasted that formula into another cell and it's not
working as planned.

I have:
Cell F5 = 1:28 AM
Cell D5 = 1:12 AM
I want the difference of F5-D5, which is 16 minutes. How do I get a return
of "16 mins"?

Thank you, Karen

"Nick Hodge" wrote:

Karen

=(((G5-C5)*60)*24)

Will give you 43. If you are using the number in a calc after that then
custom format (FormatCells...Custom) and enter 0 "mins"

If you are not using the result then add to the formula

=(((G5-C5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,173
Default Time in Minutes

Karen

Worked for me...are you sure your formula reads as below

=(((F5-D5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
Thank you for your help - I used =(((G5-C5)*60)*24)&" mins" and it worked
great.
I did a paste special and pasted that formula into another cell and it's
not
working as planned.

I have:
Cell F5 = 1:28 AM
Cell D5 = 1:12 AM
I want the difference of F5-D5, which is 16 minutes. How do I get a
return
of "16 mins"?

Thank you, Karen

"Nick Hodge" wrote:

Karen

=(((G5-C5)*60)*24)

Will give you 43. If you are using the number in a calc after that then
custom format (FormatCells...Custom) and enter 0 "mins"

If you are not using the result then add to the formula

=(((G5-C5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default Time in Minutes

Now it works in that cell - I don't know what I'm doing wrong, but I used the
paste special on another cell and it is not returning the correct value. The
cell references in the formula seem fine.

This is what I have:
Cell G11 = 12:44 AM
Cell C11 = 11:57 PM
The formula in cell I11 is =(((G11-C11)*60)*24)&" min." and the result is
-1393 mins. It must have something to do with the fact that it's AM minus
PM. How can this be fixed?

Thank you VERY much for all your help, Karen



"Nick Hodge" wrote:

Karen

Worked for me...are you sure your formula reads as below

=(((F5-D5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
Thank you for your help - I used =(((G5-C5)*60)*24)&" mins" and it worked
great.
I did a paste special and pasted that formula into another cell and it's
not
working as planned.

I have:
Cell F5 = 1:28 AM
Cell D5 = 1:12 AM
I want the difference of F5-D5, which is 16 minutes. How do I get a
return
of "16 mins"?

Thank you, Karen

"Nick Hodge" wrote:

Karen

=(((G5-C5)*60)*24)

Will give you 43. If you are using the number in a calc after that then
custom format (FormatCells...Custom) and enter 0 "mins"

If you are not using the result then add to the formula

=(((G5-C5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,173
Default Time in Minutes

Karen

Excel handles dates and times as whole numbers since Jan 1st 1900 (Day 1),
with times being decimals of a day (.5 is 12 noon), it is just formatting
that makes them look like times.

Your times are crossing midnight and taking no account of the day.

I would direct you here to understand how Excel handles dates and times and
therefore what my original formula is doing

www.cpearson.com/excel/datetime.htm

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
Now it works in that cell - I don't know what I'm doing wrong, but I used
the
paste special on another cell and it is not returning the correct value.
The
cell references in the formula seem fine.

This is what I have:
Cell G11 = 12:44 AM
Cell C11 = 11:57 PM
The formula in cell I11 is =(((G11-C11)*60)*24)&" min." and the result is
-1393 mins. It must have something to do with the fact that it's AM minus
PM. How can this be fixed?

Thank you VERY much for all your help, Karen



"Nick Hodge" wrote:

Karen

Worked for me...are you sure your formula reads as below

=(((F5-D5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
Thank you for your help - I used =(((G5-C5)*60)*24)&" mins" and it
worked
great.
I did a paste special and pasted that formula into another cell and
it's
not
working as planned.

I have:
Cell F5 = 1:28 AM
Cell D5 = 1:12 AM
I want the difference of F5-D5, which is 16 minutes. How do I get a
return
of "16 mins"?

Thank you, Karen

"Nick Hodge" wrote:

Karen

=(((G5-C5)*60)*24)

Will give you 43. If you are using the number in a calc after that
then
custom format (FormatCells...Custom) and enter 0 "mins"

If you are not using the result then add to the formula

=(((G5-C5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Time in Minutes

Hi Karen

One way to deal with times crossing the midnight barrier, is to use
=MOD(G11-C11,1) instead of plain G11-C11

Therefore modifying Nick's formula to
=(((MOD(G11-C11,1))*60)*24)&" min."

or even removing Nick's penchant for brackets ( no offence Nick <bg)
=MOD(G11-C11,1)*60*24 &" min."
will give you the correct answer of 47 min

--
Regards

Roger Govier


"Karen" wrote in message
...
Now it works in that cell - I don't know what I'm doing wrong, but I
used the
paste special on another cell and it is not returning the correct
value. The
cell references in the formula seem fine.

This is what I have:
Cell G11 = 12:44 AM
Cell C11 = 11:57 PM
The formula in cell I11 is =(((G11-C11)*60)*24)&" min." and the result
is
-1393 mins. It must have something to do with the fact that it's AM
minus
PM. How can this be fixed?

Thank you VERY much for all your help, Karen



"Nick Hodge" wrote:

Karen

Worked for me...are you sure your formula reads as below

=(((F5-D5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
Thank you for your help - I used =(((G5-C5)*60)*24)&" mins" and it
worked
great.
I did a paste special and pasted that formula into another cell and
it's
not
working as planned.

I have:
Cell F5 = 1:28 AM
Cell D5 = 1:12 AM
I want the difference of F5-D5, which is 16 minutes. How do I get
a
return
of "16 mins"?

Thank you, Karen

"Nick Hodge" wrote:

Karen

=(((G5-C5)*60)*24)

Will give you 43. If you are using the number in a calc after that
then
custom format (FormatCells...Custom) and enter 0 "mins"

If you are not using the result then add to the formula

=(((G5-C5)*60)*24)&" mins"

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Karen" wrote in message
...
This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default Time in Minutes

You could use =(G5-C5)*24*60 and format as 00 "min"
--
David Biddulph

"Karen" wrote in message
...
This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default Time in Minutes

Thank you for your help - Is that a custom format?

"David Biddulph" wrote:

You could use =(G5-C5)*24*60 and format as 00 "min"
--
David Biddulph

"Karen" wrote in message
...
This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 620
Default Time in Minutes

Yes.
--
David Biddulph

"Karen" wrote in message
...
Thank you for your help - Is that a custom format?

"David Biddulph" wrote:

You could use =(G5-C5)*24*60 and format as 00 "min"
--
David Biddulph

"Karen" wrote in message
...
This is the scenario:

Cell G5 = 1: 39 AM
Cell C5 = 12:56 AM
Cell I5 = (Formula) =G5-C5

The result is 0:43
Is there any way to return a result of 43 min. instead of 0:43?

Any help would be greatly appreciated - Thank you, Karen








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a decimal time into hours and minutes LizHough Excel Worksheet Functions 1 July 4th 06 11:00 AM
How to convert time into "block time"? Bengt Bergholm Excel Discussion (Misc queries) 6 October 6th 05 11:31 AM
Time Calculation in Minutes only ? pgcam Excel Worksheet Functions 2 May 20th 05 07:35 PM
Time Calculation in Minutes only ? pgcam Excel Worksheet Functions 1 May 20th 05 04:46 PM
How do you subtract time? (ie 03:15 am minus 5 minutes) Dennis Excel Discussion (Misc queries) 2 May 11th 05 03:56 AM


All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"