#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Time calculations

I'm trying to work out the formula to calculate time variances. I need to
display minutes as a number so it can be included in a CONCATENATE formula.
In addition to this, how do I calculate a sum such as 23:00 - 02:00? When
using a number, or general format in the result cell, excel doesn't return
the rersult I want. 180 (mins)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Time calculations

With start date in A1 and finish date in B1, use this:

=MOD(B1-A1,1)*24*60

and format the cell as General to give you 180 (minutes).

To control the format of the number in your concatenation formula, use
something like this:

TEXT(C1,"0.00")

to give you 2 decimal places.

Hope this helps.

Pete


On Jan 26, 10:53*pm, Matt
wrote:
I'm trying to work out the formula to calculate time variances. I need to
display minutes as a number so it can be included in a CONCATENATE formula.
In addition to this, how do I calculate a sum such as 23:00 - 02:00? When
using a number, or general format in the result cell, excel doesn't return
the rersult I want. 180 (mins)


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Time calculations

=MOD(B2-A2,1)*24*60
--
David Biddulph

"Matt" wrote in message
...
I'm trying to work out the formula to calculate time variances. I need to
display minutes as a number so it can be included in a CONCATENATE
formula.
In addition to this, how do I calculate a sum such as 23:00 - 02:00? When
using a number, or general format in the result cell, excel doesn't return
the rersult I want. 180 (mins)



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 189
Default Time calculations

Hi,

Hi,

This is for the calculation part in general or number format. While you
enter the data please enter like this
23.00 to 2.00 instead of 23:00 to 2:00
now make sure that the cells are formated to numbers, say for eg that this
data starts from cell A1 so

A1 B1 C1
9.00 18.00 =(B1-A1)*60

This will give the answer in minutes instead of hours.
--
_______________________
Click "Yes" if it helps
________
Thanks
Suleman Peerzade


"Matt" wrote:

I'm trying to work out the formula to calculate time variances. I need to
display minutes as a number so it can be included in a CONCATENATE formula.
In addition to this, how do I calculate a sum such as 23:00 - 02:00? When
using a number, or general format in the result cell, excel doesn't return
the rersult I want. 180 (mins)

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Time calculations

The OP might wish to consider whether this suggestion from Suleman is
suitable.

Firstly what result does it give with the input values of 23.00 and 2.00?
Did the OP want 180, or your result of -1260?

Secondly, how many minutes do you get if the inputs are 9.00 and 9.20? Your
formula gives 12, wheras the answer given for an input of 9:00 and 9:20 with
the formulae which I and other contributors have suggested would be 20
minutes. Which answer do you think the OP wants?
--
David Biddulph

"Suleman Peerzade" wrote in
message ...
Hi,

Hi,

This is for the calculation part in general or number format. While you
enter the data please enter like this
23.00 to 2.00 instead of 23:00 to 2:00
now make sure that the cells are formated to numbers, say for eg that this
data starts from cell A1 so

A1 B1 C1
9.00 18.00 =(B1-A1)*60

This will give the answer in minutes instead of hours.
--
_______________________
Click "Yes" if it helps
________
Thanks
Suleman Peerzade


"Matt" wrote:

I'm trying to work out the formula to calculate time variances. I need to
display minutes as a number so it can be included in a CONCATENATE
formula.
In addition to this, how do I calculate a sum such as 23:00 - 02:00? When
using a number, or general format in the result cell, excel doesn't
return
the rersult I want. 180 (mins)





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 189
Default Time calculations

Hi David,

The OP wanted his answer in minutes (assuming that he/she is aware of *60
which means 60 secs=1min) that too in number format.
When we are entering the data 23:00 excel automatically formats it as
customs HH:MM.
Yes if you blindly put my formula it would give back 12 i assume the
requestor would have been aware of this as to why he/she is getting 12 in
that case.

When i use your formula for 9.00 - 9.20 it give me 288?? when i put it as
9:00 - 9:20 then it gives me 20

I would like to say that i am a learner and i hope even if i am wrong in
some sense i would learn with good people like you in this community.
--
_______________________
Click "Yes" if it helps
________
Thanks
Suleman Peerzade


"David Biddulph" wrote:

The OP might wish to consider whether this suggestion from Suleman is
suitable.

Firstly what result does it give with the input values of 23.00 and 2.00?
Did the OP want 180, or your result of -1260?

Secondly, how many minutes do you get if the inputs are 9.00 and 9.20? Your
formula gives 12, wheras the answer given for an input of 9:00 and 9:20 with
the formulae which I and other contributors have suggested would be 20
minutes. Which answer do you think the OP wants?
--
David Biddulph

"Suleman Peerzade" wrote in
message ...
Hi,

Hi,

This is for the calculation part in general or number format. While you
enter the data please enter like this
23.00 to 2.00 instead of 23:00 to 2:00
now make sure that the cells are formated to numbers, say for eg that this
data starts from cell A1 so

A1 B1 C1
9.00 18.00 =(B1-A1)*60

This will give the answer in minutes instead of hours.
--
_______________________
Click "Yes" if it helps
________
Thanks
Suleman Peerzade


"Matt" wrote:

I'm trying to work out the formula to calculate time variances. I need to
display minutes as a number so it can be included in a CONCATENATE
formula.
In addition to this, how do I calculate a sum such as 23:00 - 02:00? When
using a number, or general format in the result cell, excel doesn't
return
the rersult I want. 180 (mins)




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
Time calculations [email protected] Excel Worksheet Functions 1 December 26th 08 10:15 AM
Time difference calculations, daylight savings time, Excel Tim Excel Discussion (Misc queries) 1 December 28th 06 04:18 PM
Overlapping time calculations and automatic time updates Arlette Excel Worksheet Functions 1 December 9th 06 12:20 AM
time calculations lschuh Excel Worksheet Functions 5 February 9th 06 09:12 PM
convert time imported as text to time format for calculations batfish Excel Worksheet Functions 3 October 27th 05 11:24 PM


All times are GMT +1. The time now is 02:07 PM.

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"