Counting Frequency of Number of Visits from Detailed Data

shellp

Board Regular
Joined
Jul 7, 2010
Messages
194
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
Hello

I am using Excel 2010. I have my raw data worksheet with every single ED visit where one visit is one row of data. In column I of the raw data I have a column of MH for mental health which is a 0 or 1 for if the patient was a mental health patient or not. I would like to determine the number of days in each month where there were more than 2 mental health patients in a single day.

I can create a pivot table, group on registration date and sum the mental health visits but how do I translate that information to a chart on another worksheet? Using sumif I can calculate the number of mental health ED visits per month but in the same table I want to have the metric of "number of days where there were more than 2 MH patients in a single day" and can't figure out how to do it.

Any and all assistance greatly appreciated.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Since you're familiar with SUMIF

Use COUNTIFS(date column, date, MH column, 1) to add number of MH per day to a new column.

Then add that as a filter to your pivot.
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,462
Members
449,085
Latest member
ExcelError

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top