Count Unique values based on another column

longstick

New Member
Joined
Nov 19, 2011
Messages
42
I've seen many solutions for this question but still haven't been able to get it to work for myself.

I am looking for the number of tools on a process. Tooling is identified by a serial number in column A. The process is identified by the Process name in column B.

In the end I would like to know that Process 1 has 2 tools, Process 2 has 4 tools, etc...

Thanks,
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
I've seen many solutions for this question but still haven't been able to get it to work for myself.

I am looking for the number of tools on a process. Tooling is identified by a serial number in column A. The process is identified by the Process name in column B.

In the end I would like to know that Process 1 has 2 tools, Process 2 has 4 tools, etc...

Thanks,

E2: Process 1
E3: Process 2

F2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=SUM(IF(FREQUENCY(IF($A$2:$A$400<>"",IF($B$2:$B$400=$E2,
     MATCH("~"&$A$2:$A$400,$A$2:$A$400&"",0))),
     ROW($A$2:$A$400)-ROW($A$2)+1),1))

If there are no special meaning chars like < around the entries in the A range, the "~"& and &"" bits can be omitted from the formula.
 
Upvote 0

Forum statistics

Threads
1,215,323
Messages
6,124,246
Members
449,149
Latest member
mwdbActuary

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