Count DISTINCT in ColumnA IF ColumnE status='QA'

jaymz69

New Member
Joined
Jun 19, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Count DISTINCT in ColumnA IF ColumnE status='QA'

I want to have a new column (RESULTS) where the formula counts only ColumnA (DISTICNLY) IF ColumnE cell = 'QA'



Small example:
CategoryStatusRESULTS
blueQA
3​
<=== ONLY 3 DISTINCT Catgories that have status='QA'
blueQA
blueno
grayno
grayno
orangeQA
orangeno
pinkQA
pinkno
pinkno
pinkno
pinkQA
purpleno
redno
redno
redno
yellowno
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I thought of 1 way:

Code:
=SUM(--ISNUMBER(SEARCH("QA",RIGHT(UNIQUE(A2:A18&B2:B18),2))))
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=ROWS(UNIQUE(FILTER(A2:A100,B2:B100="QA")))
 
Upvote 0
Solution
Fluff's worked for my scenario, it is on QUIP and that formula was the only one that worked - though it is at 1 when nothing = 'QA', but that is minor. Thank you all
 
Upvote 0
just a collaborative spreadsheet we have to use in company. Not as robust and heavy lifting as Excel. But most formulas can work, from experience I have had so far with it.
 
Upvote 0
Interesting I tried in another cell but <>'QA' and returns 62 (77 was the QA return) - the total is 98 for the unique categories - I thought I could reverse it and get the unique count <> 'QA' a number somewhere at 20 is what I was expecting (98 total - 72='QA' => 21<>'QA', instead of 66)
 
Upvote 0
If you have blank rows then you would need to use
Excel Formula:
=ROWS(UNIQUE(FILTER(A2:A100,(B2:B100<>"QA")*(B2:B100<>""))))
 
Upvote 0

Forum statistics

Threads
1,215,691
Messages
6,126,220
Members
449,303
Latest member
grantrob

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