Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
colt
 
Posts: n/a
Default Time calculations Urgent please help


I am trying to get this result in excel


22:00 to 02:00 =4

22:00 to 03:30 = 5.5

Can anyone help me with this please

Thanks in advance


--
colt
  #2   Report Post  
jahoobob
 
Posts: n/a
Default


colt Wrote:
I am trying to get this result in excel


22:00 to 02:00 =4

22:00 to 03:30 = 5.5

Can anyone help me with this please

Thanks in advance

If 22:00 is in A1 and 2:00 is in B1 then this would work if you format
the cell it is in to a Time format of hh:mm:

=IF(A1B1,B1-A1+24,B1-A1)


--
jahoobob
  #3   Report Post  
jahoobob
 
Posts: n/a
Default


colt Wrote:
I am trying to get this result in excel


22:00 to 02:00 =4

22:00 to 03:30 = 5.5

Can anyone help me with this please

Thanks in advance

In your illustration, if 22:00 is in A1 and 02:00 is in B1 then this
formula will get your desired reslut:
=IF(A1B1,((B1-A1)*24)+24,(B1-A1)*24)


--
jahoobob
  #4   Report Post  
Sandy Mann
 
Posts: n/a
Default

Colt,

With 22:00 in A1 and 02:00 in B1, try:

=B1-A1+(A1B1)

or if you want the answer in real numbers:

=(B1-A1+(A1B1))*24

and format the cell as General or Number

An alternative would be:

=MOD(B1-A1,1) for time

or

=MOD(B1-A1,1)*24

for a General number


--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk
"colt" wrote in message
...

I am trying to get this result in excel


22:00 to 02:00 =4

22:00 to 03:30 = 5.5

Can anyone help me with this please

Thanks in advance


--
colt



  #5   Report Post  
ruby2sdy
 
Posts: n/a
Default

try using the "time" function on your existing numbers

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
conditional formatting with time values Access Idiot Excel Discussion (Misc queries) 2 September 13th 05 03:29 PM
'Time to Fix' Formula wlln001 Excel Discussion (Misc queries) 1 September 7th 05 12:11 PM
Time Calculations Paul T Excel Worksheet Functions 1 April 23rd 05 04:02 AM
time interval calculations in excel Krishna Excel Discussion (Misc queries) 6 April 8th 05 02:57 PM
Date and time calculations Tony Excel Discussion (Misc queries) 2 January 8th 05 05:16 PM


All times are GMT +1. The time now is 05:27 PM.

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

About Us

"It's about Microsoft Excel"