Count of Unique Rows Using Multiple Criteria Ignoring Blanks in Data

paulrh

New Member
Joined
Nov 4, 2015
Messages
15
From the following example data set I would like to count the number of rows where "Company A" and the word "Completed" appear but not counting duplicate values in the first column and ignoring the blanks that might appear in the first column. It is ignoring the blanks I am having difficulties with.


[TABLE="width: 402"]
<tbody>[TR]
[TD]WL-ADB-190229[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADM-190232[/TD]
[TD]Company M[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190238[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190238[/TD]
[TD]Company A[/TD]
[TD]Non-job[/TD]
[/TR]
[TR]
[TD]WL-ADB-190229[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]n/a[/TD]
[TD]Company Z[/TD]
[TD]Unit Rental[/TD]
[/TR]
[TR]
[TD]n/a[/TD]
[TD]Company Z[/TD]
[TD]Unit Rental[/TD]
[/TR]
[TR]
[TD]n/a[/TD]
[TD]Company M[/TD]
[TD]Unit Rental[/TD]
[/TR]
[TR]
[TD]n/a[/TD]
[TD]Company M[/TD]
[TD]Unit Rental[/TD]
[/TR]
[TR]
[TD]n/a[/TD]
[TD]Company M[/TD]
[TD]Unit Rental[/TD]
[/TR]
[TR]
[TD]n/a[/TD]
[TD]Company Z[/TD]
[TD]Unit Rental[/TD]
[/TR]
[TR]
[TD]n/a[/TD]
[TD]Company M[/TD]
[TD]Unit Rental[/TD]
[/TR]
[TR]
[TD]WL-ADB-190302[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190303[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190301[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190231[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190305[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190306[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADC-190307[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADC-190307[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Company M[/TD]
[TD]Unit Rental[/TD]
[/TR]
[TR]
[TD]WL-ADZ-190237[/TD]
[TD]Company Z[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190312[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190309[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190312[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
[TR]
[TD]WL-ADB-190309[/TD]
[TD]Company A[/TD]
[TD]Completed[/TD]
[/TR]
</tbody>[/TABLE]


Thank you
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Try:
This is an array formula that must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCDE
1
2WL-ADB-190229Company ACompleted11
3WL-ADM-190232Company MCompleted
4WL-ADB-190238Company ACompleted
5WL-ADB-190238Company ANon-job
6WL-ADB-190229Company ACompleted
7n/aCompany ZUnit Rental
8n/aCompany ZUnit Rental
9n/aCompany MUnit Rental
10n/aCompany MUnit Rental
11n/aCompany MUnit Rental
12n/aCompany ZUnit Rental
13n/aCompany MUnit Rental
14WL-ADB-190302Company ACompleted
15WL-ADB-190303Company ACompleted
16WL-ADB-190301Company ACompleted
17WL-ADB-190231Company ACompleted
18WL-ADB-190305Company ACompleted
19Company ACompleted
20WL-ADB-190306Company ACompleted
21WL-ADC-190307Company ACompleted
22WL-ADC-190307Company ACompleted
23Company MUnit Rental
24WL-ADZ-190237Company ZCompleted
25WL-ADB-190312Company ACompleted
26WL-ADB-190309Company ACompleted
27WL-ADB-190312Company ACompleted
28WL-ADB-190309Company ACompleted
Sheet
 
Upvote 0
Try:

Spreadsheet Formulas
CellFormula
E2{=SUM(IF(FREQUENCY(IF($B$2:$B$28="Company A",IF($C$2:$C$28="Completed",IF($A$2:$A$28<>"",MATCH($A$2:$A$28,$A$2:$A$28,0)))),ROW($A$2:$A$28)-ROW($A$2)+1),1))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>

This works perfectly. Thank you so much.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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