ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Double Criteria (https://www.excelbanter.com/excel-worksheet-functions/96847-double-criteria.html)

DRANDON

Double Criteria
 

I wish to check two columns of data for the purpose of counting.
1st column is either "Inpatient" or "Outpatient". The 2nd is either
"Cardio", "General".

I want to count how many "Inpatient" are "Cardio"

My formula looks like this -
SUM(IF((G55:G119="Inpatient")+(I55:I119="CARDIO"), 1,0))

The result is #VALUE

What gives?

Currently, I'm using a PivotTable that works ok but I'de rather use a
formula so I can easily format a nice looking table.

Can anyone help me?

Drandon


--
DRANDON
------------------------------------------------------------------------
DRANDON's Profile: http://www.excelforum.com/member.php...o&userid=35901
View this thread: http://www.excelforum.com/showthread...hreadid=556923


Don Guillett

Double Criteria
 
SUMproduct((G55:G119="Inpatient")*(I55:I119="CARDI O"))

--
Don Guillett
SalesAid Software

"DRANDON" wrote in
message ...

I wish to check two columns of data for the purpose of counting.
1st column is either "Inpatient" or "Outpatient". The 2nd is either
"Cardio", "General".

I want to count how many "Inpatient" are "Cardio"

My formula looks like this -
SUM(IF((G55:G119="Inpatient")+(I55:I119="CARDIO"), 1,0))

The result is #VALUE

What gives?

Currently, I'm using a PivotTable that works ok but I'de rather use a
formula so I can easily format a nice looking table.

Can anyone help me?

Drandon


--
DRANDON
------------------------------------------------------------------------
DRANDON's Profile:
http://www.excelforum.com/member.php...o&userid=35901
View this thread: http://www.excelforum.com/showthread...hreadid=556923




DRANDON

Double Criteria
 

Thanks man, that works outstanding!

Drandon


--
DRANDON
------------------------------------------------------------------------
DRANDON's Profile: http://www.excelforum.com/member.php...o&userid=35901
View this thread: http://www.excelforum.com/showthread...hreadid=556923


Don Guillett

Double Criteria
 
glad to help

--
Don Guillett
SalesAid Software

"DRANDON" wrote in
message ...

Thanks man, that works outstanding!

Drandon


--
DRANDON
------------------------------------------------------------------------
DRANDON's Profile:
http://www.excelforum.com/member.php...o&userid=35901
View this thread: http://www.excelforum.com/showthread...hreadid=556923





All times are GMT +1. The time now is 07:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com