# Counting Unique Values with Multiple Criteria

1. ## 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. ## 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

3. ## 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

4. ## Re: Counting Unique Values with Multiple Criteria

That worked. Thanks!

5. ## 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.

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

#### 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