• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Unique countifs

Hi all,

Can anybody help me how to use UNIQUE function (introduced in office 365) to use with countifs ( multiple criteria)
 
Please find the attached Sample Data file ,in the requirement sheet there are 4 drop downs in which value can be changed and i want unique count of customer code basis the criteria with sales greater than zero

also refer the data sheet to look for data
 

Attachments

  • Sample Data Unique +Count ifs.xlsb
    12.3 KB · Views: 5
Last edited:
upload small excel file .... Guessing can't be worked out !!!!!

Please find the attached Sample Data file ,in the requirement sheet there are 4 drop downs in which value can be changed and i want unique count of customer code basis the criteria with sales greater than zero

also refer the data sheet to look for data
 

Attachments

  • Sample Data Unique +Count ifs - Copy.xlsb
    16.4 KB · Views: 6
=COUNTA(UNIQUE(FILTER(Customer_Code,(Region=A3)*(Year=B3)*(Quarter=C3)*(Product=D3)*(Sales>0))))

The formula is not giving correct answers , its giving customer count more than what i am getting the correct numbers using the Pivot ,but pivot cannot be used there ,hence need some formula to get the answer.

thanks in advance
 
The formula is not giving correct answers , its giving customer count more than what i am getting the correct numbers using the Pivot ,but pivot cannot be used there ,hence need some formula to get the answer.

thanks in advance
You missed an open bracket
 
Formula provided by anishms was correct.
Code:
=IFERROR(
     COUNTA(
         UNIQUE(
             FILTER(Data!A:A ,
                          (Data!C:C=Requirement!A3)*
                          (Data!E:E=Requirement!B3)*
                          (Data!D:D=Requirement!C3)*
                          (Data!F:F=Requirement!D3)
                        )
         )
     );
  "No matching data found")
Setting the same filters manually in your file, shows same result.
75994

PS: Remember for future posts, when you say it's not working, it is a best practice (polite even) to highlight where things are off according to your rules. Simply saying it is wrong does not help.
 

Attachments

  • Sample Data Unique +Count ifs - Copy.xlsb
    17.1 KB · Views: 1
Back
Top