+ Reply to Thread
Results 1 to 6 of 6

formula to count unique values based on multiple criteria

  1. #1
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    formula to count unique values based on multiple criteria

    WS Attached
    I need a formula to count unique values when multiple criteria is present.
    B2 is where the formula goes.
    D2:D12 is the range to only count unique values, counting only once, however only counting them if E2:E12 text is “SOLD”.
    In the worksheet, I highlighted the amount of times the formula should count which is a total of 5 times.

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

    Re: formula to count unique values based on multiple criteria

    Cell B2 array formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Re: formula to count unique values based on multiple criteria

    its coming back 0, not working. should come back counting 5

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    6,010

    Re: formula to count unique values based on multiple criteria

    It is an array formula, you must confirm it with Ctrl+Shift+Enter.

    Or try:

    =SUMPRODUCT((E2:E12="SOLD")/COUNTIFS(D2:D12,D2:D12,E2:E12,E2:E12))

    just Enter.

  5. #5
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Re: formula to count unique values based on multiple criteria

    oh ok, thanks, it works great!

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

    Re: formula to count unique values based on multiple criteria

    @excelteam777 You're Welcome. Glad to help . Thank You 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. [SOLVED] Count unique values based on multiple criteria
    By kv.singh in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-27-2020, 08:08 AM
  2. Count Unique values in multiple worksheets based on certain criteria
    By Kyuss21 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-06-2019, 01:09 PM
  3. [SOLVED] SUMPRODUCT function count the Unique values based on Multiple criteria
    By savetrees in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2018, 04:03 AM
  4. Count unique values based on multiple criteria
    By Jonathan11235 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-19-2015, 10:02 PM
  5. [SOLVED] how to count unique values in excel based on multiple criteria
    By IDBUGM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2006, 12:10 PM

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