+ Reply to Thread
Results 1 to 4 of 4

Count unique cells with multiple conditions

  1. #1
    Registered User
    Join Date
    03-04-2016
    Location
    Australia
    MS-Off Ver
    Office 13
    Posts
    9

    Count unique cells with multiple conditions

    Hi all,

    I have been trying to build a formula in MS Excel 13 without using VB or a macro.
    I want to count the number of times each Service Name (column B) is displayed, that has a Unique number in column C, has data in column D and has either a 1,2 or 2M in Column A

    is this possible?

    Count unique cells with multiple conditions-4.xlsx

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count unique cells with multiple conditions

    This array formula** entered in H2 and copied down:

    =SUM(IF(FREQUENCY(IF(B$2:B$16=F2,IF(D$2:D$16<>"",IF(ISNUMBER(MATCH(A$2:A$16,{1,2,"2M"},0)),C$2:C$16))),C$2:C$16)>0,1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    03-04-2016
    Location
    Australia
    MS-Off Ver
    Office 13
    Posts
    9

    Re: Count unique cells with multiple conditions

    Hi Tony,

    thank you, that worked perfectly!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count unique cells with multiple conditions

    You're welcome. 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. [SOLVED] Count unique cells based on multiple conditions
    By Sladamuss in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2016, 05:52 AM
  2. [SOLVED] Count unique cells based on multiple conditions
    By Sladamuss in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-04-2016, 09:23 AM
  3. Count Unique Item #'s with multiple conditions
    By Junebug81 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-25-2016, 06:29 PM
  4. Count unique values with multiple conditions
    By liybpg in forum Excel General
    Replies: 6
    Last Post: 03-18-2015, 05:43 AM
  5. Count unique logs with multiple conditions of multiple sheets
    By Robert Bob in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-12-2007, 12:49 AM
  6. Advanced unique cell count with multiple conditions ... help!
    By Flystar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2005, 10:50 PM
  7. Count Unique text based on multiple conditions
    By MAX258 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2005, 01:44 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