Excel count unique values from column, based on criteria from another

I'm using
to get a total of the unique values in the range, but I also want to narrow it down a bit more.

I only want the total of unique values based on criteria from another column.

For example:

How can I combine these formulas?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

That didn't work, due to blanks in V2:V25 interfering and adding 1 to the total

This works


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TelMacoAuthor Commented:
hehe, can we make this more complicated -  Is is possible to do this evaluation twice and combine again?



I don't want to add them, as some of the unique values will overlap
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Twice? You mean V has to be sometext and U has to be othertext?
TelMacoAuthor Commented:
On second thought, I'll post this as a new question and update with a link to the new post
TelMacoAuthor Commented:
oh lol you're online! we posted at the same time.  Want me to do a new post, or keep this going?  

Yeah, it would based on two sets of data.  I 'd like a unique count from C where V is sometext, and U is othertext
Let's see which is faster.. :)
Try this

TelMacoAuthor Commented:
I saw your reply prior to submitting another question, your suggestion works great.  I appreciate your help!
Hi TelMaco,

I double checked and there were some cases where my formula returns the incorrect result.

the correct formula should be


As given by Barry in http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_26926181.html#a35287823

TelMacoAuthor Commented:
Just coming back to post an update...I noticed some issues too.  Thanks for following up, I'll check out the new formula.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.