date and time difference

G

Guest

I have two colums of data.

Date Charge Time
7/9/06 7:55
7/9/06 19:00
7/11/06 13:00
7/12/06 3:40
7/13/06 2:00
7/13/06 23:50

I would like to find the difference in charge time in a new column. How
would I go about doing this?
 
G

Guest

I don't have the experience to get you all the way, but I recently solved a
similar problem (calculating differences between dates only ... without
times) by referencing some Julian date calculators/conversions here:
http://www.cpearson.com/excel/jdates.htm

That might be enough to get you started.
 
G

Guest

Assuming that the Dates are in column A & the Charge Times in col B, and the
headings are in row 1:

To find the difference in charge time between row 3 (7/9/06 19:00) & row 2
(7/9/06 7:55) use the following formula in C3:

=(A3&B3)-(A2&B2)

Then simply copy on down. Initially, if col C isn't time formatted you will
get 0.461805555 as the answer because it is formatted as General. Make sure
that row C is time formatted (row A should already by date formatted & B
should already be time formatted).
 
G

Guest

This does work when there is less than one day between charges. When there is
moret han one day I do not get the right amount of time. I tried to change
the formating, but it seems that all the options won't allow the hours to go
beyond 24.
 
P

Peo Sjoblom

Use this instead

=(A3+B3)-(A2+B2)

then format as [hh]:mm

the formatting is important
 
G

Guest

Got it, thanks for the help.

vito said:
This does work when there is less than one day between charges. When there is
moret han one day I do not get the right amount of time. I tried to change
the formating, but it seems that all the options won't allow the hours to go
beyond 24.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top