Forum

Notifications
Clear all

Distinct count if

9 Posts
4 Users
0 Reactions
77 Views
(@ayemu7)
Posts: 197
Reputable Member
Topic starter
 

Hi Team,

I would like to have distinct count of the CodeFac as attached expected result.

Please let me know how to get the expected Distinct ID counts.

 

thank you.

Regards,

Aye

 
Posted : 02/11/2020 2:50 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Aye,

With dynamic arrays: =COUNT(UNIQUE(FILTER($B$2:$B$26,$A$2:$A$26=A34)))

Mynda

 
Posted : 02/11/2020 5:08 am
(@ayemu7)
Posts: 197
Reputable Member
Topic starter
 

Hi Mynda,

Thanks for your reply.

I tried the formula with Ctrl+Shift+Enter and I got the error as attached.

thank you.QCountIf.PNG

Regards,

Aye

 
Posted : 10/11/2020 12:07 pm
Anders Sehlstedt
(@sehlsan)
Posts: 971
Prominent Member
 

Hello,

What Excel version do you have? The dynamic arrays Mynda is using works currently from Excel 365 version 1907 build 11901.20176.

More about these dynamic arrays here. https://www.myonlinetraininghub.com/excel-dynamic-arrays

Br,
Anders

 
Posted : 10/11/2020 12:53 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Aye, 

Like Anders said, that formula uses dynamic arrays. You don't need to enter them with CTRL+SHIFT+ENTER

Please advise what version of Excel you have so we know what solutions will work for you.

Mynda

 
Posted : 10/11/2020 6:28 pm
(@ayemu7)
Posts: 197
Reputable Member
Topic starter
 

Thanks, Mynda and Anders,

I have attached my excel version as required.

Regards, 

AyeExcelVersion.PNG

 
Posted : 11/11/2020 1:27 am
Anders Sehlstedt
(@sehlsan)
Posts: 971
Prominent Member
 

Hello,

You have an old version that does not have these dynamic arrays. Your version is 1902 build 11328.20438. Ask your IT department for an update to at least version 2002 build 12527.20988.

Br,
Anders

 
Posted : 11/11/2020 2:15 am
(@ayemu7)
Posts: 197
Reputable Member
Topic starter
 

Thanks, Andres,

I will try to check with IT.

Regards,

Aye

 
Posted : 11/11/2020 6:53 am
(@debaser)
Posts: 837
Member Moderator
 

To work with your current version:

=COUNT(1/FREQUENCY(IF($A$2:$A$26=A34,MATCH($B$2:$B$26,$B$2:$B$26,0)),MATCH($B$2:$B$26,$B$2:$B$26,0)))

array entered.

 
Posted : 11/11/2020 7:37 am
Share: