#1   Report Post  
Denise
 
Posts: n/a
Default Count If

I posted this question Friday but I don't think that it was very clear.

I have a spreadsheet that has admission times to different floors. Our
floors range from 3-7 and also includes surgery. The time I am wanting to
count is how long it took the patient to get to the floor once they called
for a bed number. There will be over 100 admissions for the month that I
need numbers for.

The floor number is in column I, the time is in column S. I need a
breakdown of each floor - how many were less than 00:45, 00:46 - 1:00, 1:01 -
1:30 and greater then 1:30.

I hope that this makes sense.


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default Count If

One way:

Assume that the desired floor number is in Z1:

AA1: =SUMPRODUCT(--(I1:I200=Z1),--(S1:S200<=TIME(0,45,0))
AA2: =SUMPRODUCT(--(I1:I200=Z1),--(S1:S200TIME(0,45,0),
--(S1:S200<=TIME(1,0,0))

AA3: =SUMPRODUCT(--(I1:I200=Z1),--(S1:S200TIME(1,0,0),
--(S1:S200<=TIME(1,30,0))

AA3: =SUMPRODUCT(--(I1:I200=Z1),--(S1:S200TIME(1,30,0))

In article ,
Denise wrote:

I posted this question Friday but I don't think that it was very clear.

I have a spreadsheet that has admission times to different floors. Our
floors range from 3-7 and also includes surgery. The time I am wanting to
count is how long it took the patient to get to the floor once they called
for a bed number. There will be over 100 admissions for the month that I
need numbers for.

The floor number is in column I, the time is in column S. I need a
breakdown of each floor - how many were less than 00:45, 00:46 - 1:00, 1:01 -
1:30 and greater then 1:30.

I hope that this makes sense.

  #3   Report Post  
Gary''s Student
 
Posts: n/a
Default Count If

Is 1:30 one minute 30 sec or one hour thirty minutes?
--
Gary''s Student


"Denise" wrote:

I posted this question Friday but I don't think that it was very clear.

I have a spreadsheet that has admission times to different floors. Our
floors range from 3-7 and also includes surgery. The time I am wanting to
count is how long it took the patient to get to the floor once they called
for a bed number. There will be over 100 admissions for the month that I
need numbers for.

The floor number is in column I, the time is in column S. I need a
breakdown of each floor - how many were less than 00:45, 00:46 - 1:00, 1:01 -
1:30 and greater then 1:30.

I hope that this makes sense.


  #4   Report Post  
Denise
 
Posts: n/a
Default Count If

It is 1 hour 30 minutes.

"Gary''s Student" wrote:

Is 1:30 one minute 30 sec or one hour thirty minutes?
--
Gary''s Student


"Denise" wrote:

I posted this question Friday but I don't think that it was very clear.

I have a spreadsheet that has admission times to different floors. Our
floors range from 3-7 and also includes surgery. The time I am wanting to
count is how long it took the patient to get to the floor once they called
for a bed number. There will be over 100 admissions for the month that I
need numbers for.

The floor number is in column I, the time is in column S. I need a
breakdown of each floor - how many were less than 00:45, 00:46 - 1:00, 1:01 -
1:30 and greater then 1:30.

I hope that this makes sense.


  #5   Report Post  
Tom Ogilvy
 
Posts: n/a
Default Count If

The general form
=sumproduct(--($I$2:$I$150=3),--($S$2:$S$150TimeValue("00:45")),--($S$2:$S$
150<=TimeValue("01:00")))
Each hard coded entry can be replace by a cell reference to a cell
containing that data

=sumproduct(--(Data!$I$2:$I$150=A2),--(Data!$S$2:$S$150B2),--(Data!$S$2:$S$
150<=C2))

On the sheet with the formula
A2: 3
B2: 00:45
C2: 01:00

Regards,
Tom Ogilvy



"Denise" wrote in message
...
I posted this question Friday but I don't think that it was very clear.

I have a spreadsheet that has admission times to different floors. Our
floors range from 3-7 and also includes surgery. The time I am wanting to
count is how long it took the patient to get to the floor once they called
for a bed number. There will be over 100 admissions for the month that I
need numbers for.

The floor number is in column I, the time is in column S. I need a
breakdown of each floor - how many were less than 00:45, 00:46 - 1:00,

1:01 -
1:30 and greater then 1:30.

I hope that this makes sense.




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
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


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