+ Reply to Thread
Results 1 to 3 of 3

Counting Unique Values from a Set List Based on Another Cell's Conditions

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    1

    Counting Unique Values from a Set List Based on Another Cell's Conditions

    I need help figuring out a formula that will allow me to count the number of unique occurrences for a list of values that show up within specific categories.

    Basically, I have data like this:

    A B
    1 Booking Type Room Number
    2 Office Hours 123
    3 Office Hours 125
    4 Event 200
    5 Class 101
    6 Event 200
    7 Office Hours 123
    8 Office Hours 145
    9 Class 145
    10 Event 202
    11 Class 101

    And I have to figure out how many different rooms have been used for, say, Office Hour bookings. But, in addition, there are different types of rooms and I need to break it down further by room category.

    For example:

    Classrooms 101, 145, 147, 148
    Study Rooms 123, 125, 134, 191
    Event Spaces 200, 202

    So I need data to fill in the following:

    A B C D E
    1 Booking Type Total Unique Classrooms Used Total Unique Study Rooms Used Total Unique Event Spaces Used Total Unique Spaces Used
    2 Office Hours ?? ?? ??
    3 Event ?? ?? ??
    4 Class ?? ?? ??

    Total Unique Spaces Used is fairly straight-forward. I'm getting really stuck on trying to figure out how many different classrooms were used specifically for Office Hours booking, for example.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Counting Unique Values from a Set List Based on Another Cell's Conditions

    Hello justen. Welcome to the forum.

    I am not sure I understand. The row and column headers make the data and mission unclear to me.

    I'll guess though. This formula will return a count of unique Room Numbers by Booking Types in H2:K4. However the column headers H1:K1 play no role in this formula because I have no idea what the intent is.

    In H2 filled down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  3. #3
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Re: Counting Unique Values from a Set List Based on Another Cell's Conditions

    H2=SUMPRODUCT((MATCH($A$1:$A$11&$B$1:$B$11,$A$1:$A$11&$B$1:$B$11,)=ROW($A$1:$A$11))*($A$1:$A$11=$G2)*(ISNUMBER(FIND($B$1:$B$11,INDEX($E:$E,COLUMN(A1)))))*1) copy to J4

+ 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. Counting unique values with conditions
    By etaver87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-11-2016, 08:30 AM
  2. [SOLVED] Counting Unique Values With 2 Conditions
    By TUFXP in forum Excel General
    Replies: 2
    Last Post: 11-22-2015, 05:03 PM
  3. [SOLVED] Counting Unique Values with Multiple Conditions
    By keivahn in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-08-2014, 08:53 AM
  4. [SOLVED] Counting Number of Unique Values in a List based on Criteria
    By greencroft in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-03-2014, 04:00 AM
  5. Generating a list of unique values based on specific conditions
    By Gobaith in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2012, 11:35 AM
  6. Counting unique values with conditions
    By Notters in forum Excel General
    Replies: 3
    Last Post: 04-12-2011, 09:28 AM
  7. Counting unique values with conditions
    By Lemm in forum Excel General
    Replies: 2
    Last Post: 01-13-2009, 08:41 PM

Tags for this Thread

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