formula to calulate length of time

G

Guest

I need to create a formula that displays the length of stay between to dates
in a cell. For example the length of time between date 1 = 2006/01/06 12:30
pm and date 2 = 2006/01/13 10:30 am. What is the time frame here in hours.
 
N

Niek Otten

=A2-A1
Format>Cells, Number tab, Custom. In the Type box, enter [h]
in your case the result is 166 hours
 

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