Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Metolius Dad
 
Posts: n/a
Default counting problems

Dear Wizards,

I have a year's worth of data. Each day is on a row. The number of
patients in the ICU is in col C. The number of those patients that were
'status 7' are in col D. I want to create another grid that tells me: How
many days were there in the year when I had 8 patients AND 4 of them were
status 7? then How many days were there in the year when I had 9 patients
AND 4 of them were status 7? etc. I'm guessing that each of the cells in my
second grid will need to be populated with formulas but I need help with
that/those formulas.

Thanks for being there!
Sam
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB
 
Posts: n/a
Default counting problems

Assuming your data is in C1:D100 (adjust as necessary, but Sumproduct cannot
use an entire column of 65536 rows)
=SUMPRODUCT(--(C1:C100=8), --(D1:D100=4))

But instead of hardcoding the criteria (8 and 4), you could use a reference
to cells that contain the criteria.

"Metolius Dad" wrote:

Dear Wizards,

I have a year's worth of data. Each day is on a row. The number of
patients in the ICU is in col C. The number of those patients that were
'status 7' are in col D. I want to create another grid that tells me: How
many days were there in the year when I had 8 patients AND 4 of them were
status 7? then How many days were there in the year when I had 9 patients
AND 4 of them were status 7? etc. I'm guessing that each of the cells in my
second grid will need to be populated with formulas but I need help with
that/those formulas.

Thanks for being there!
Sam

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
conditional counting with Excel LeicaElmar Excel Worksheet Functions 1 October 17th 05 10:23 PM
I'm getting mad - I'm having problems with EXCEL file name length Raffa Excel Discussion (Misc queries) 2 October 3rd 05 07:56 AM
problems for counting philip Excel Worksheet Functions 8 August 4th 05 05:01 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM
Counting... Patrick G Excel Worksheet Functions 3 February 23rd 05 10:05 PM


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