Find Unique Values with a Condition

gaukin

New Member
Joined
May 15, 2012
Messages
4
Hello,

I currently use an array function to get the number of unique values, however I need to only count those unique values based on a condition. This is the formula I am using to get the number of unique values in column L:

{=SUM(IF(FREQUENCY(MATCH($L$6:$L$20543,$L$6:$L$20543,0),MATCH($L$6:$L$20543,$L$6:$L$20543,0))>0,1))}

but I need to only count those unique values in column L that match a letter (A through E) in column A. I can't figure out where to embed the IF function, or how to change this whole array to a SUMIF.

Thank you!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Maybe something like one of these array formulas.
Formula in M2 is unique count for "A" in column A.
Formula in M5 is unique count for any value in column A that is (A thru E).

These are array formulas that must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABKLMN
1LetterCount
2Atest13Unique with "A" in column A
3Dtest1
4Atest1
5Gtest36Unique with "A thru E" in column A
6Dtest3
7Atest2
8Ctest4
9Gtest5
10Atest1
11Atest1
12Atest5
Sheet
 
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,004
Members
449,203
Latest member
Daymo66

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