Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default 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
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
a function that counts the number of cells with information zuri125 Excel Worksheet Functions 1 June 7th 06 07:37 AM
Help with Sum if (or something else not sure) Lost in reconcillation Excel Worksheet Functions 5 June 6th 06 08:57 PM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
comparing a value in a cell to see if it is higher than a number PK Excel Worksheet Functions 9 June 2nd 05 03:35 PM


All times are GMT +1. The time now is 11:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"