Count Unique Cells that meet a certain criteria
I am looking for a formula to count the number of items - "Sales - Service Labour" occur in a series, on unique invoice numbers.
I have tried this formula with no success
=COUNTIFS(DISTINCT([Invoice Number]:[Invoice Number]), Account:Account, "Sales - Service/Labour")
Best Answer
-
Hi
Try this
=COUNT(DISTINCT(COLLECT([Invoice Number]:[Invoice Number], Account:Account, "Sales - Service/Labour")))
cheers,
Kelly
Answers
-
Hi
Try this
=COUNT(DISTINCT(COLLECT([Invoice Number]:[Invoice Number], Account:Account, "Sales - Service/Labour")))
cheers,
Kelly
-
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Thanks Kelly, that worked, much appreciated.
Philip
-
Hi Mark, thanks for your contribution, which I can't seem to see now. I liked your approach because it reduces the complexity of the process
-
Hi Phil, I removed my response when I saw that Kelly already answered with an awesome solution. I learned how to do COUNT(DISTINCT(COLLECT..
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Help Article Resources
Categories
Check out the Formula Handbook template!