Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Calculating Midnight Stays

I have two Dates and Times (Admission Date & Time) and Discharged Date &
Time). I need to calculate the number of bed nights (patient must be in the
unit at 00:00:00
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,345
Default Calculating Midnight Stays

Unless I am not understanding what it is you are asking the times will be
irrelevant, you only want to know how many midnights the person was in the
bed.

If the Date and time are in the same cell, (ie Admission Date & time in A1
and Discharge date and time in B1) then use:

=INT(B1)-INT(A1)-1

If the Date and time are in separate cells, (ie Admission Date in A1,
Admission time in B1 & Discharge Date & time in C1 & D1 respectively/ then
use:

=C1-A1-1

In both cases format as General or Number

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"ICU research" <ICU
wrote in message
...
I have two Dates and Times (Admission Date & Time) and Discharged Date &
Time). I need to calculate the number of bed nights (patient must be in
the
unit at 00:00:00



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default Calculating Midnight Stays

thanks Sandy

Will try your Excel formula

"ICU research" wrote:

I have two Dates and Times (Admission Date & Time) and Discharged Date &
Time). I need to calculate the number of bed nights (patient must be in the
unit at 00:00:00

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
After midnight Steved Excel Worksheet Functions 3 December 12th 07 02:31 AM
Calculating time past midnight. mailrail Excel Discussion (Misc queries) 3 April 18th 07 07:39 PM
Calculating Time Past Midnight Darren Excel Worksheet Functions 6 March 13th 06 03:03 PM
Calculating time interval (some across midnight) [email protected] Excel Worksheet Functions 3 January 17th 06 05:50 PM
Calculating time difference over midnight! sygazelle Excel Discussion (Misc queries) 4 September 29th 05 04:59 PM


All times are GMT +1. The time now is 12:49 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"