+ Reply to Thread
Results 1 to 6 of 6

Count unique values based off of data in 3 other columns

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Count unique values based off of data in 3 other columns

    I have a table that looks like the following:
    Capture.JPG
    I need to be able to count the number of unique OpUnits based on the Certification Level, FEMA Zone, and Status. For example, I need to be able to yield a resulting number of OpUnits that offer EMT-Paramedics in FEMA Zone 1 that are Active. Any help is greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Count unique values based off of data in 3 other columns

    Look at COUNTIFS function

    something like ......

    =COUNTIFS(A:A,"=EMT-Paramedics",B:B,"=1",D:D,"=Active")

  3. #3
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Count unique values based off of data in 3 other columns

    I would use a pivot table most likely, and possibly a powerpivot depending on exactly what I needed and how likely I was to reproduce this.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  4. #4
    Registered User
    Join Date
    09-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Count unique values based off of data in 3 other columns

    Thanks for the reply John but I've tried variations of that. Problem is, this will indeed tell me that there are 130 EMT-Paramedics in Zone1 that are Active but it still does not give me a count of the unique OpUnits that are providing them.

  5. #5
    Registered User
    Join Date
    09-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Count unique values based off of data in 3 other columns

    MikeTron,
    I tried a Pivot Table but couldn't quite figure out how to set it up so that it would result in the actual count of unique OpUnits based on the selections.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Count unique values based off of data in 3 other columns

    Use this formula with appropriate ranges to produce unique list of OpUnits

    In this example input is Column A, output Column B

    Put this in row 2 and enter with Ctrl+shift+Enter and copy down. You can then use COUNTIFS with entry as a criterion.


    =INDEX($A$2:$A$20, MATCH(0, COUNTIF($B$1:B1, $A$2:$A$20), 0))

+ 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] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  2. Count Unique values in Column based on values in other columns
    By dmschave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2014, 11:06 AM
  3. Count of unique values based on two columns of data
    By JodyMathis1973 in forum Excel General
    Replies: 8
    Last Post: 04-18-2012, 10:11 AM
  4. Count Unique Values based on 2 columns
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 02-14-2012, 11:27 AM
  5. count unique values in columns based on date values
    By cclntn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2010, 06:16 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