ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count based on multiple conditions (https://www.excelbanter.com/excel-discussion-misc-queries/146061-count-based-multiple-conditions.html)

Ken

Count based on multiple conditions
 
Excel2003 ... I need to compare & count based on multiple conditions ...
WorkBook contains 2 WorkSheets (WS1 & WS2) ... Need Formula in WS2, Col H
that will:

Compare WS2 ... Cols B & C values
with values found in
WS1 ... Cols C & H

Count occs where WS2, Cols B & C values match WS1 Cols C & H values.

Thanks ... Kha



Elkar

Count based on multiple conditions
 
See if this works for you:

=SUMPRODUCT(--('WS1'!C1:C100=B1:B100),--('WS1'!H1:H100=C1:C100))

HTH,
Elkar


"Ken" wrote:

Excel2003 ... I need to compare & count based on multiple conditions ...
WorkBook contains 2 WorkSheets (WS1 & WS2) ... Need Formula in WS2, Col H
that will:

Compare WS2 ... Cols B & C values
with values found in
WS1 ... Cols C & H

Count occs where WS2, Cols B & C values match WS1 Cols C & H values.

Thanks ... Kha




All times are GMT +1. The time now is 12:28 PM.

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