function to give the number of hours

G

Guest

I need a function that will result in the number of hrs between two times. If
there is no data, then blank. How do I get the result in C1 as in below?

a1= "9-15-06 8:00 PM" b1="9-16-06 05:30 AM c1= 9.5
 
R

Ron Rosenfeld

I need a function that will result in the number of hrs between two times. If
there is no data, then blank. How do I get the result in C1 as in below?

a1= "9-15-06 8:00 PM" b1="9-16-06 05:30 AM c1= 9.5

With the data entered as above but with no double quote marks:

C1: =(B1-A1)*24

Format as General or Number with desired number of decimal places
--ron
 
G

Guest

Thanks to both of you ... it worked.

Ron Rosenfeld said:
With the data entered as above but with no double quote marks:

C1: =(B1-A1)*24

Format as General or Number with desired number of decimal places
--ron
 

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