Count number of unique values based on criteria in other rows

arjun0405

New Member
Joined
Apr 30, 2018
Messages
5
Hey Guys,

I am new to writing formula. Can you guys help me with the below problem? Thanks.
I want to write a formula in separate cells, where it shows the unique values of column A when a criteria is selected in Column B.
Eg.
Cell 1: good: 3 (101,101,103,103,105)
Cell2: bad: 3 (102,104,101,102)

[TABLE="width: 500"]
<tbody>[TR]
[TD]Order no.[/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]good[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]good[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]bad[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]good[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]bad[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]good[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]bad[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]bad[/TD]
[/TR]
[TR]
[TD]105[/TD]
[TD]good[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hmmm. It seems you don't want to calculate anyting. Wouldn't Autofilter suffice then?
 
Upvote 0
Hmmm. I won't help you with this... I don't know of a way to concat values into one cell without using UDF (user defined function)...
 
Upvote 0
If you get a formula please post it here. Thx. :)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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