+ Reply to Thread
Results 1 to 5 of 5

Counting Unique Values with Multiple Criteria

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    2

    Counting Unique Values with Multiple Criteria

    Hello,
    I am trying to create a formula where excel will Count the number of unique Accounts for each Rep by certain types, in this case General and Priority. I need to make sure if an account appears twice it is only counted once. Attached is an example of information. If anyone can help me with this, I would greatly appreciate any advice.
    Thanks
    S
    Example.xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,136

    Re: Counting Unique Values with Multiple Criteria

    hi smwbuddy, welcome to the forum. try this array formula:
    =SUM(IF(FREQUENCY(IF($B$2:$B$26=$F2,IF($C$2:$C$26=G$1,IF($B$2:$B$26<>"",MATCH($A$2:$A$26,$A$2:$A$26,0)))),ROW($A$2:$A$26)-ROW($A$2)+1),1))
    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again. extend range as you desired

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,776

    Re: Counting Unique Values with Multiple Criteria

    Hi and welcome to the forum

    Your profile says 2003, but your sample file is 2007 or later, if you are using 2007+ please update profile accordingly

    Not sure if this will help, but I created a table for you and applied CF to show >1. The total at the bottom shows the total unique accounts
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    04-15-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Counting Unique Values with Multiple Criteria

    That worked. Thanks!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,776

    Re: Counting Unique Values with Multiple Criteria

    which 1 lol?

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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