Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 6
Default Extracting data/using COUNTIFS

Hello Experts,

I need some assistance in creating an advanced formula that extracts the count of data from a spreadsheet using 2 criteria.

I tried this =(INDEX('9008 Data'!A5:A20,MATCH(1,IF('9008 Data'!B5:B20='Assessment Summary Report'!B18,IF('9008 Data'!D5:D20='Assessment Summary Report'!J16,1)),0))) but it only returned the first cell with the Pat id number and not the count. I tried this formula too: =INDEX('9008 Data'!A5:A20,MATCH('Assessment Summary Report'!J16&'Assessment Summary Report'!B18,'9008 Data'!F5:F20&'9008 Data'!D5:D20,0)) and got the same result.

My Data is below:

Pat Id Reference Category Added Date Month
1352 ORAL ONCOLOGY 1/21/2013 January
1446 RHEUMATOID ARTHRITIS 3/18/2013 March
1212 HEPATITIS C 2/27/2013 February
1351 MULTIPLE SCLEROSIS 3/13/2013 March
1774 HEPATITIS C 3/27/2013 March
1889 MULTIPLE SCLEROSIS 3/6/2013 March
2014 RHEUMATOID ARTHRITIS 3/4/2013 March
1000 HEMOPHILIA 2/21/2013 February
1202 HEPATITIS C 1/16/2013 January
1434 Rheumatoid Arthritis 3/28/2013 March
5007 MULTIPLE SCLEROSIS 3/5/2013 March
5003 MULTIPLE SCLEROSIS 2/25/2013 February
5008 HEPATITIS C 2/4/2013 February
1357 RHEUMATOID ARTHRITIS 1/16/2013 January
1448 RHEUMATOID ARTHRITIS 3/12/2013 March


I have also attached a copy of the file.

Using the Month and Reference Category (Program) as my criteria, I will like to know the count of the patients (using the pat ID) to determine the number of Patients offered therapy every month.

I also created a drop down menu in the Month cell so that when I select February for instance; the count of patients offered therapy for each program should populate in the respective cells.

Example: Month February

PROGRAM Patients offered Therapy
HEMOPHILIA 1
HEPATITIS C 2
MULTIPLE SCLEROSIS 1
ORAL ONCOLOGY
RHEUMATOID ARTHRITIS


Please help.

I hope to hear back soon. Thank you in advance for your anticipated assistance.

Addatone.
Attached Files
File Type: zip ExtractdataCountIFs.zip (60.9 KB, 55 views)

Last edited by Addatone : August 27th 13 at 04:28 PM Reason: Made some changes
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Extracting data/using COUNTIFS

Hi Addatone,

Am Mon, 26 Aug 2013 23:10:28 +0100 schrieb Addatone:

I attached a copy of the file.


your attached file doesn't work. It gives an error when trying to open.

Try:
=COUNTIFS(Data!B2:B20,B18,Data!D2:D20,J16)


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Junior Member
 
Posts: 6
Default

Thank you Claus Busch!

I tested the formula and it works perfectly. Thank you so much for your help. I truly appreciate it.

Addatone.


Quote:
Originally Posted by Claus Busch View Post
Hi Addatone,

Am Mon, 26 Aug 2013 23:10:28 +0100 schrieb Addatone:

I attached a copy of the file.


your attached file doesn't work. It gives an error when trying to open.

Try:
=COUNTIFS(Data!B2:B20,B18,Data!D2:D20,J16)


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
Displaying Data grabbed using concatenates and CountIfs woodland81 Charts and Charting in Excel 2 June 7th 12 10:24 PM
Need to use Countifs to return unique data ascottbag-hcm Excel Worksheet Functions 1 October 28th 09 07:22 PM
Selecting data in a specific date range using COUNTIFS function Joe R @ AA[_2_] Excel Worksheet Functions 1 May 8th 09 02:29 PM
Countifs of prior years monthly data based on MTD today Joe R @ AA Excel Worksheet Functions 3 April 14th 09 04:09 PM
Countifs to Sumproduct for 2003 - was Simple Countifs.. from Fr Steve Excel Worksheet Functions 2 January 4th 09 05:36 PM


All times are GMT +1. The time now is 08:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"