+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Using countifs to count unique values

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    New York
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    2

    Using countifs to count unique values

    Hi. Wondering if someone can assist me in writing a formula (I'm hoping to avoid using macros).

    As shown below, I have a table with data. I need to calculate unique values (all digits but amount varies daily) in column C for specific "sectors" based on the values in columns A and B. In other words, using data example below, this formula would calculate how many unique values in column C are there for Sun and Day (columns A and B). The result would be 2.

    I've tried combining countifs with sumproduct but can't seem to get it to work. Any help is appreciated. Thanks.


    A B C
    1 sun day 123
    2 sun day 344
    3 sun day 344
    4 moon day 555
    5 moon night 666
    6 star night 333
    7 star night 222
    Last edited by NBVC; 09-23-2010 at 10:08 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using countifs to count unique values

    If your data is in say A2:C8, and your input criteria are in E2 (Sun) and F2 (Day), then try:

    Please Login or Register  to view this content.

    confirmed with CTRL+SHIFT+ENTER
    not just ENTER
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-23-2010
    Location
    New York
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    2

    Re: Using countifs to count unique values

    It works! Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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