Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sue
 
Posts: n/a
Default If statement help

I am helping an hospital emergency department track times that it takes for
EKGs to be ordered after a patient is admitted to ER. I have 3 columns - ER
Admit Time, Paged Time, and EKG Ordered Greater than 10 min. after Admission.
The times are in minutes and seconds. I am wanting Excel to put "1" in the
EKG Ordered Greater than 10 Min. column if cell D2 (Paged Time) - C2 (ER
Admit Time)is greater than or equal to 10 minutes but less than 60 minutes.
If it is less than 10 minutes, I am wanting it to put a "0" in the cell. If
it is equal to 60 or above - leave blank. How would I set this up?? Thanks!
Sue
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

I am assuming that you use decimal minutes (e.g. 10m for ten mins) not time
(00:10:00).

=IF(D2-C2<10,0,IF(D2-C2<60,1,""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sue" wrote in message
...
I am helping an hospital emergency department track times that it takes

for
EKGs to be ordered after a patient is admitted to ER. I have 3 columns -

ER
Admit Time, Paged Time, and EKG Ordered Greater than 10 min. after

Admission.
The times are in minutes and seconds. I am wanting Excel to put "1" in the
EKG Ordered Greater than 10 Min. column if cell D2 (Paged Time) - C2 (ER
Admit Time)is greater than or equal to 10 minutes but less than 60

minutes.
If it is less than 10 minutes, I am wanting it to put a "0" in the cell.

If
it is equal to 60 or above - leave blank. How would I set this up??

Thanks!
Sue



  #3   Report Post  
Sue
 
Posts: n/a
Default

Unfortunately, they are using time. Would I set the formula up to multiply by
1440? =IF(D2-C2)*1440<10,0,IF(D2-C2)*1440<60,1,"")) Thank you for your help!

"Bob Phillips" wrote:

I am assuming that you use decimal minutes (e.g. 10m for ten mins) not time
(00:10:00).

=IF(D2-C2<10,0,IF(D2-C2<60,1,""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sue" wrote in message
...
I am helping an hospital emergency department track times that it takes

for
EKGs to be ordered after a patient is admitted to ER. I have 3 columns -

ER
Admit Time, Paged Time, and EKG Ordered Greater than 10 min. after

Admission.
The times are in minutes and seconds. I am wanting Excel to put "1" in the
EKG Ordered Greater than 10 Min. column if cell D2 (Paged Time) - C2 (ER
Admit Time)is greater than or equal to 10 minutes but less than 60

minutes.
If it is less than 10 minutes, I am wanting it to put a "0" in the cell.

If
it is equal to 60 or above - leave blank. How would I set this up??

Thanks!
Sue




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Yep, that's it.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sue" wrote in message
...
Unfortunately, they are using time. Would I set the formula up to multiply

by
1440? =IF(D2-C2)*1440<10,0,IF(D2-C2)*1440<60,1,"")) Thank you for your

help!

"Bob Phillips" wrote:

I am assuming that you use decimal minutes (e.g. 10m for ten mins) not

time
(00:10:00).

=IF(D2-C2<10,0,IF(D2-C2<60,1,""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sue" wrote in message
...
I am helping an hospital emergency department track times that it

takes
for
EKGs to be ordered after a patient is admitted to ER. I have 3

columns -
ER
Admit Time, Paged Time, and EKG Ordered Greater than 10 min. after

Admission.
The times are in minutes and seconds. I am wanting Excel to put "1" in

the
EKG Ordered Greater than 10 Min. column if cell D2 (Paged Time) - C2

(ER
Admit Time)is greater than or equal to 10 minutes but less than 60

minutes.
If it is less than 10 minutes, I am wanting it to put a "0" in the

cell.
If
it is equal to 60 or above - leave blank. How would I set this up??

Thanks!
Sue






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
How do I set up an If statement to look beyond the previous cell . jbaker Excel Worksheet Functions 3 March 2nd 05 06:59 AM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 03:57 PM.

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"