Count unique values with multiple criteria

Mykiej23

New Member
Joined
Jun 2, 2016
Messages
22
Hi,

I've been having a look at the various threads already on this but every time I try it it doesnt work.

I have been trying this Array Formula which I believe in theory should work.
{=SUM(--(FREQUENCY(IF('Raw Data'!K:K="152",'Raw Data'!F:F),'Raw Data'!F:F)>0))}

What I need to do is count the number of IDs appear with the error code 152.

K is the column with the error codes and F is the column with the IDs.

Any help would be great!

Thanks,
Michaela
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
try removing the quotes from around 152, which is making it a text value
 
Upvote 0
1. Try to avoid referencing whole columns.
2. The formula you posted requires that the range in K is text or consists of text numbers and the range in F is numeric.
 
Upvote 0
Doh! Thank you, it works now! I thought I had tried it without the "" and it didnt work, apparently not!
 
Upvote 0

Forum statistics

Threads
1,213,535
Messages
6,114,198
Members
448,554
Latest member
Gleisner2

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