View Single Post
  #13   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default Calculate difference in Times

If you are struggling to understand the replies in English in this group,
you may be better with a group in your own language?

Toppers suggested =B1-A1.
You told us that =A1-B1 didn't work.

For the example you gave, hh:mm will be fine as a format for the answer. If
you have a date & time span which will go beyond 24 hours, format the result
as [h]:mm
--
David Biddulph

"Darren" wrote in message
...
Thanks David, but as I have already said, that formula did not work...
Besides, how would hh:mm work when you not only have times, but also dates
in
the same box. like I said, I am trying to find the difference in the
following:

A1 = 4/2/2007 11:50:00 AM
B1 = 4/2/2007 1:15:00 PM

If you claim this works, then I guess I'm out of luck. I am running Excel
2003 SP2.

I don't think you guys are reading my entire posting. My cell contains
mm/dd/yyyy hh:mm:ss AM/PM. Thats all in one cell. Not just time. Yes,
hh:mm will work if I just had time.

Now, does anyone know if I can find the difference when A1 and B1 have the
data shown above?
Thank you.


"David Biddulph" wrote:

The suggestion has already been given by Toppers. Use that formula.
--
David Biddulph

"Darren" wrote in message
...
This did not work. A1 = 4/2/2007 11:50:00 AM
B1 = 4/2/2007 1:15:00 PM
When I format the cells for hh:mm, C1=A1- B1 gives me #Value. I tried
formatting the cells to mm/dd/yyyy h:mm:ss AM/PM, but still getting
#Value.

Suggestions?


"Toppers" wrote:

A1 start time
B1 end time
C1 =B1-A1

format as hh:mm

"Darren" wrote:

How can I get the difference in time from 10:35:00 to 11:45:00.
I have a program to exports the following to excel:
2/9/2007 12:45:00 PM [start time]
2/9/2007 4:15:00 PM [end time]

How can I create a formula to give me the diffence in these times?