function to give the number of hours

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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
 
Back
Top