Count Non Duplicate Values with matching criteria in another column

Dokat

Active Member
Joined
Jan 19, 2015
Messages
304
Office Version
  1. 365
Hi,

I have a range where I am trying to count only unique values with matching criteria in cell C.. In below examples I am trying to get the unique count in column A where C is "Inactive - Use Up Inventory" and column D is "Keep".The result should be 1 as GSF11-BLK is only unique value in column A where Column C is " Inactive - Use Up Inventory" and column D is "Keep". I tried array formulas as well as row unique filter formula however wasn't able to get the result. Did anyone come across a similar issue and have a solution for it?

ACD
GSF11-BLKInactive - Use Up InventoryKeep
GSF11-BLUActive-Purchased ItemKeep
GSFG11-BLKActive-Purchased ItemKeep
GSM11-BLUActive-Purchased ItemKeep
GSFG11-REDActive-Purchased ItemKeep
GSM11-BLKActive-Purchased ItemKeep
GSM11-BLKInactive - Use Up InventoryKeep
GSM11-BLKActive-Purchased ItemKeep
GSM11-BLUInactive - Use Up InventoryKeep
GSM11-BLUInactive - Use Up InventoryKeep
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
What version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.

Also with that sample shouldn't the answer be 3 as you have GSF11-BLK, GSM11-BLK & GSM11-BLU
 
Upvote 0
What version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.

Also with that sample shouldn't the answer be 3 as you have GSF11-BLK, GSM11-BLK & GSM11-BLU
It is MS 365 for Enterprise. Output should be only 1 as GSM11-BLK & GSM11-BLU is duplicate values in the range.

Thanks
 
Upvote 0
In that case how do you decide what is a duplicate value?
 
Upvote 0
So if a value in A occurs more than once, regardless of the values in C & D it should be ignored?
 
Upvote 0
Ok, how about
+Fluff v2.xlsm
ABCDEF
1
2GSF11-BLKInactive - Use Up InventoryKeep1
3GSF11-BLUActive-Purchased ItemKeep
4GSFG11-BLKActive-Purchased ItemKeep
5GSM11-BLUActive-Purchased ItemKeep
6GSFG11-REDActive-Purchased ItemKeep
7GSM11-BLKActive-Purchased ItemKeep
8GSM11-BLKInactive - Use Up InventoryKeep
9GSM11-BLKActive-Purchased ItemKeep
10GSM11-BLUInactive - Use Up InventoryKeep
11GSM11-BLUInactive - Use Up InventoryKeep
Summary
Cell Formulas
RangeFormula
F2F2=COUNT(FILTER(ROW(A2:A11),(C2:C11=C2)*(D2:D11=D2)*(ISNUMBER(XMATCH(A2:A11,UNIQUE(A2:A11,,1),0)))))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,764
Members
448,991
Latest member
Hanakoro

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