Using CountIFS and DISTINCT formula


I am trying the below formulas:

=COUNTIFS(DISTINCT({Customer Name}, {Sales Rep}, Ecosystem@row, {ERP}, "Oracle Cloud"))

=COUNTIFS(DISTINCT({Customer Name}, {Sales Rep}, Ecosystem@row, {ERP} ="Oracle Cloud"))

Error message is: #Incorrect Argument

I am trying to COUNT the customer names IF the sales rep on the reference matches the sales rep in my row, and IF the the ERP in the reference is Oracle Cloud...

I also know that there are duplicates / multiple lines for each customer and only want to count DISTINCT customer names (count 1 per customer)...

What is wrong with my formula / how would I fix my formula?


Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!