Results 1 to 5 of 5

Count Unique Values IF a Column Contains Data

Threaded View

  1. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Count Unique Values IF a Column Contains Data

    The formula shown in H2 is
    =SUM(INDEX(($D$1:$D$12=F2)*(MATCH($A$1:$A$12,$A$1:$A$12,0)=ROW($A$1:$A$12)),0))

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Unit
    Type
    Privacy
    Care Level
    2
    1
    alstudio
    PRI
    AL
    AL
    2
    =SUM(INDEX(($D$1:$D$12=F2)*(MATCH($A$1:$A$12,$A$1:$A$12,0)=ROW($A$1:$A$12)),0))
    3
    2
    al2br
    SPA
    AL
    DM
    3
    4
    2
    al2br
    SPB
    AL
    IL
    3
    5
    3
    al1br
    PRI
    DM
    6
    4
    al1br
    SPA
    DM
    7
    4
    al1br
    SPB
    DM
    8
    5
    al2br
    SPA
    IL
    9
    5
    al2br
    SPB
    IL
    10
    6
    alstudio
    PRI
    DM
    11
    7
    al2br
    PRI
    IL
    12
    9
    al1br
    PRI
    IL
    Last edited by JBeaucaire; 02-11-2017 at 12:34 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count number of unique values in Column A that match a term in Column B
    By frsaxon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2016, 07:22 AM
  2. Replies: 4
    Last Post: 10-09-2015, 05:19 AM
  3. Replies: 2
    Last Post: 08-19-2015, 10:22 AM
  4. 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
  5. Replies: 8
    Last Post: 05-15-2013, 04:50 PM
  6. [SOLVED] Macro to count unique values in a column, enter it in next column, then delete duplicates
    By pmorisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 03:27 PM
  7. Count Unique Values In One Column Basis Unique Values in Another Column
    By shez_raz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2012, 01:55 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