Looking for unique numbers with several criteria

I need to add an additional criteria to the following formula and I tried but it is not working??
This one works:

{="Unique Numbers in SAP = "&SUM(--(FREQUENCY(IF(Sheet2!C2:C50000<>"",MATCH(Sheet2!C2:C50000,Sheet2!C2:C50000,0)),ROW(Sheet2!C2:C50000)-ROW(Sheet2!C2)+1)>0))}

This one does not work:

{="Unique Numbers in SAP = "&SUM(--(FREQUENCY(IF(,Sheet2!H2:H50000"<>SESA"),IF(Sheet2!C2:C50000<>"",MATCH(Sheet2!C2:C50000,Sheet2!C2:C50000,0))),ROW(Sheet2!C2:C50000)-ROW(Sheet2!C2)+1)>0))}
Who is Participating?
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.

Ejgil HedegaardCommented:
Try this
="Unique Numbers in SAP = "&SUM(--(FREQUENCY(IF(Sheet2!H2:H50000<>"SESA",IF(Sheet2!C2:C50000<>"",MATCH(Sheet2!C2:C50000,Sheet2!C2:C50000,0))),ROW(Sheet2!C2:C50000)-ROW(Sheet2!C2)+1)>0))

Open in new window

ssblueCoordinatorAuthor Commented:
THe formula works but only if the duplicates are deleted.  I need it to work without deleting the duplicates.
Ejgil HedegaardCommented:
In attached numbers 1 to 12 are duplicated 3 times in column C.
There are several with SESA in column H, but only number 4 and 9 has it for all, so the count is 10.
What is wrong.

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
Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.

ssblueCoordinatorAuthor Commented:
You are correct, I was running into the issue where one of the dups was SESA and one wasn’t. Not sure how to handle that. Thanks for the help. I will need to do some thinking on this.
ssblueCoordinatorAuthor Commented:
ssblueCoordinatorAuthor Commented:
Could we write it to count unique and then subtract all SESA?
Ejgil HedegaardCommented:
Don't know how to do that, but conditional format could highlight numbers where some have SESA and some don't.
Then filter on the color, and correct.
ssblueCoordinatorAuthor Commented:
Thanks for the insight and help. I have to do some thinking on it.
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

From novice to tech pro — start learning today.