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.


WL-ADB-190229Company ACompleted
WL-ADM-190232Company MCompleted
WL-ADB-190238Company ACompleted
WL-ADB-190238Company ANon-job
WL-ADB-190229Company ACompleted
n/aCompany ZUnit Rental
n/aCompany ZUnit Rental
n/aCompany MUnit Rental
n/aCompany MUnit Rental
n/aCompany MUnit Rental
n/aCompany ZUnit Rental
n/aCompany MUnit Rental
WL-ADB-190302Company ACompleted
WL-ADB-190303Company ACompleted
WL-ADB-190301Company ACompleted
WL-ADB-190231Company ACompleted
WL-ADB-190305Company ACompleted
Company ACompleted
WL-ADB-190306Company ACompleted
WL-ADC-190307Company ACompleted
WL-ADC-190307Company ACompleted
Company MUnit Rental
WL-ADZ-190237Company ZCompleted
WL-ADB-190312Company ACompleted
WL-ADB-190309Company ACompleted
WL-ADB-190312Company ACompleted
WL-ADB-190309Company ACompleted

<tbody>
</tbody>


Thank you
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,215,443
Messages
6,124,889
Members
449,193
Latest member
ronnyf85

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