+ Reply to Thread
Results 1 to 8 of 8

Count a unique number based on 2 other criteria’s

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Count a unique number based on 2 other criteria’s

    Hello All
    Please see attached

    C21 = Looks at column A and column L and returns the number of unique vales in column A, using A21 as a criteria

    I need a 2nd criteria “Sep” B20

    Paul
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Count a unique number based on 2 other criteria’s

    I'm not sure I understand the problem....but you may want to investigate Pivot Tables? They can aid in summarizing data. I filtered some of your data - I hope this leads you on the right path. I had to add Labels to your data for Pivot Table to work. What's nice about Pivot tables(PT), is that once you have them in PT you can Pivot the data - by dragging a column to a row or vice versa.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Count a unique number based on 2 other criteria’s

    Please try

    =COUNT(1/FREQUENCY(IF($L$2:$L$12=A21,IF($N$2:$N$12=$B$20,MATCH($A$2:$A$12,$A$2:$A$12,0))),ROW($A$2:$A$12)-ROW($A$2)+1))
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: Count a unique number based on 2 other criteria’s

    Pivots isnt realy an option, Was hoping for formula

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Count a unique number based on 2 other criteria’s

    How about
    =SUM(--(FREQUENCY(IF($L$2:$L$12=A21,IF($N$2:$N$12=$B$20,MATCH($A$2:$A$12,$A$2:$A$12,0))),ROW($A$2:$A$12)-ROW($A$2)+1)>0))

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,382

    Re: Count a unique number based on 2 other criteria’s

    C21 cell array formula

    HTML Code: 

  7. #7
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: Count a unique number based on 2 other criteria’s

    Thanks, All worked well

    Special thanks to Bo_Ry

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Count a unique number based on 2 other criteria’s

    Glad to help & thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. count number of unique dates based on criteria
    By SammyN in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-2020, 07:21 AM
  2. Replies: 3
    Last Post: 08-24-2017, 05:59 AM
  3. Count unique value based on two criteria.
    By Dkz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-06-2016, 06:32 AM
  4. Replies: 2
    Last Post: 11-21-2014, 12:59 PM
  5. [SOLVED] Count unique entries based off unique criteria in another column
    By hambly in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-11-2014, 03:33 PM
  6. How can I count number of UNIQUE cells given a criteria
    By areynolds in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2011, 02:19 PM
  7. How can I count number of UNIQUE cells given a criteria
    By jjurroz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-11-2011, 11:03 AM

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