+ Reply to Thread
Results 1 to 8 of 8

COUNT Unique using Frequency

  1. #1
    Registered User
    Join Date
    07-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    31

    COUNT Unique using Frequency

    Dear all,

    I have a excel table with duplicate bill id, i want to get the unique count. However, it should also consider another criteria, which is customer. Should I use advanced filter instead? How should the advanced filter be set?

    kw42chan
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: COUNT Unique using Frequency

    You can use pviot table to get the unique value.

  3. #3
    Registered User
    Join Date
    07-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    31

    Re: COUNT Unique using Frequency

    Quote Originally Posted by JieJenn View Post
    You can use pviot table to get the unique value.
    Dear JieJenn,

    How if I do not want to use pivot table? Is there any formula can help me?

    kw42chan

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: COUNT Unique using Frequency

    Try:

    =SUM(IF(FREQUENCY(IF(Customer=E2,IF(Billid<>"",MATCH(Billid,Billid,0))),ROW(Billid)-MIN(ROW(Billid))+1),1))

    Confirmed with CTRL+SHIFT+ENTER
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: COUNT Unique using Frequency

    If BillId's are numbers, try this,

    =SUM(SIGN(FREQUENCY(IF(Customer=E2,Billid),Billid)))

    Confirmed with CTRL+SHIFT+ENTER
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    07-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    31

    Re: COUNT Unique using Frequency

    Quote Originally Posted by NBVC View Post
    Try:

    =SUM(IF(FREQUENCY(IF(Customer=E2,IF(Billid<>"",MATCH(Billid,Billid,0))),ROW(Billid)-MIN(ROW(Billid))+1),1))

    Confirmed with CTRL+SHIFT+ENTER
    how about if i have 2 more criteria to be added on?

    pls see attached.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: COUNT Unique using Frequency

    Array Entered,

    =SUM(SIGN(FREQUENCY(IFERROR(IF(Customer=G2,IF(Month=H2,IF(Service=I2,MATCH(Billid,Billid,0)))),""),ROW(Customer)-ROW(INDEX(Customer,1,1))+1)))

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: COUNT Unique using Frequency

    Quote Originally Posted by kw42chan View Post
    how about if i have 2 more criteria to be added on?

    pls see attached.
    You can do a nested IF to include those criteria, and you can just "multiply" the conditions together like so:

    Please Login or Register  to view this content.
    Confirmed with CTRL+SHIFT+ENTER

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1