date and time calculations

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I subtract one date and time from another and show the answer in hh:mm:ss
 
Hi

You can just use B2-A2 and format the result as [hh]:mm:ss

--
Andy.


Andyk said:
How can I subtract one date and time from another and show the answer in
hh:mm:ss
 
Andy,

right click the cell with the result of the formula,
select Format Cells > Number tab > Time > 37:30:55

Pete
 
But you might need to cater over midnight

=MOD(B2-A2,1)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Andy B said:
Hi

You can just use B2-A2 and format the result as [hh]:mm:ss

--
Andy.


Andyk said:
How can I subtract one date and time from another and show the answer in
hh:mm:ss
 

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

Back
Top