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
 

Some videos you may like

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Weazel

Well-known Member
Joined
Dec 24, 2011
Messages
3,155
try removing the quotes from around 152, which is making it a text value
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
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.
 

Mykiej23

New Member
Joined
Jun 2, 2016
Messages
22
Doh! Thank you, it works now! I thought I had tried it without the "" and it didnt work, apparently not!
 

Watch MrExcel Video

Forum statistics

Threads
1,126,939
Messages
5,621,725
Members
415,853
Latest member
Newlife72

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
Top