• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Distinct Count

Lasantha

Member
Dear All,

Could you please help me to get distinct count by ignoring "-", . Please see the attached file.

Thank you.
 

Attachments

  • Book1 DC.xlsx
    9.1 KB · Views: 11
For Office 365 users everything is about to change!

The formula
= FILTER( location, location<>"-" )
will eliminate the dashes from the row list. Nesting the formula within UNIQUE reduces the list to unique values.
The final step is simply to count the number of terms remaining
= COUNTA( UNIQUE( FILTER(location, location<>"-"), TRUE ) )

Basically, each function simply "does what it says on the tin".
 
Back
Top