ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   function to give the number of hours (https://www.excelbanter.com/excel-worksheet-functions/111065-function-give-number-hours.html)

force530

function to give the number of hours
 
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

~L

function to give the number of hours
 
The formula for C1 would be =(B1-A1)*24

"force530" wrote:

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


Ron Rosenfeld

function to give the number of hours
 
On Thu, 21 Sep 2006 13:01:02 -0700, force530
wrote:

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

force530

function to give the number of hours
 
Thanks to both of you ... it worked.

"Ron Rosenfeld" wrote:

On Thu, 21 Sep 2006 13:01:02 -0700, force530
wrote:

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



All times are GMT +1. The time now is 04:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com