count unique items in list, where several criteria true

baitmaster

Well-known Member
Joined
Mar 12, 2009
Messages
2,042
Good afternoon all

I am using this formula:

=COUNT(1/FREQUENCY(IF(F18:F24=D28,E18:E24),E18:E24))
entered as array formula shift + ctrl + enter

This counts unique entries in column E, where column F matches D28. This is fine when I am counting values in column E, but I need to look at text strings instead. This formula does not work for text strings. Does anyone have an alternative, or a reason why not?

Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
thanks for the responses so far

I tried CountA, but it gives the wrong answer. I'm not entirely sure what is happening within the rest of the calculation, but I don't think this is the item that needs to be changed

I also tried sumproduct. I have the following formula, that calculates the number of unique entries in the list:
=SUMPRODUCT((E18:E24<>"")/COUNTIF(E18:E24,E18:E24&""))
Unfortunately this doesn't take account of the additional criteria in column F. I tried changing the COUNTIF to COUNTIFS in order to include this additional range, but again without success
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,304
Members
452,904
Latest member
CodeMasterX

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