Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Calculate the difference in date/time formatted cells

I need to know how to find the difference in time in two cells with a
date/time format of 05/01 04:30
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculate the difference in date/time formatted cells

Hi,

With this in A1 and b1

15/05/2010 10:00 16/05/2010 11:30

formula

=B1-A1

Format the formula cell as dd hh:mm
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Longhorn1972" wrote:

I need to know how to find the difference in time in two cells with a
date/time format of 05/01 04:30

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Calculate the difference in date/time formatted cells

Just subtract the two cells and format the formula cell as custom [h]: mm

=A2-A1

Regards,
Per

"Longhorn1972" skrev i meddelelsen
...
I need to know how to find the difference in time in two cells with a
date/time format of 05/01 04:30


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Calculate the difference in date/time formatted cells

OK until you get beyond 31 days, I think you'll find.
--
David Biddulph


"Mike H" wrote in message
...
Hi,

With this in A1 and b1

15/05/2010 10:00 16/05/2010 11:30

formula

=B1-A1

Format the formula cell as dd hh:mm
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Longhorn1972" wrote:

I need to know how to find the difference in time in two cells with a
date/time format of 05/01 04:30



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculate the difference in date/time formatted cells

Yes, absolutely correct David. I had this mindset of 1 day and a few hours.
Thanks for the correction.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"David Biddulph" wrote:

OK until you get beyond 31 days, I think you'll find.
--
David Biddulph


"Mike H" wrote in message
...
Hi,

With this in A1 and b1

15/05/2010 10:00 16/05/2010 11:30

formula

=B1-A1

Format the formula cell as dd hh:mm
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Longhorn1972" wrote:

I need to know how to find the difference in time in two cells with a
date/time format of 05/01 04:30



.



  #6   Report Post  
Senior Member
 
Location: Hyderabad
Posts: 237
Thumbs up

Quote:
Originally Posted by Longhorn1972 View Post
I need to know how to find the difference in time in two cells with a
date/time format of 05/01 04:30
If A1 has:1/1/2010 5:05:00 AM
B1 has 10/10/2010 12:02:00 PM

this formulae
="days- "&TRUNC(B1-A1,0)&" hours-"&(((B1-A1)-TRUNC(B1-A1,0))*24)

gives u the result as:

days- 282 hours- 6.94999999995343


all the best
__________________
Thanks
Bala
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
how to calculate time difference in hh:mm:ss bobby t Excel Discussion (Misc queries) 6 July 19th 07 02:48 PM
Calculate Elapsed time: difference between 2 Date/Timestamp perio beadedbeauty Excel Worksheet Functions 4 August 24th 06 04:49 PM
Calculate from time formatted cell David Excel Worksheet Functions 1 April 2nd 06 05:45 PM
Calculate time difference between cells sky Excel Discussion (Misc queries) 3 January 23rd 06 11:09 AM
Subtracting Cells formatted with Date AND Time to get hours? mcr1 - ExcelForums.com Excel Discussion (Misc queries) 1 July 5th 05 09:08 AM


All times are GMT +1. The time now is 03:38 AM.

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"