Share via

Excel Formula

Anonymous
2024-08-12T05:28:36+00:00

Hi there,

With the the example:

The values "Bradley", "Doyle", "Doyle", "Doyle" the result is two unique values — "Bradley" and "Doyle".

What would the formula be to get the result 2 in a cell?

Thanks,

Aleisha

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2024-08-12T06:28:52+00:00

Hi AleishaB,
Thanks for your post in Microsoft Community.

If your cells A1 through A4 contain the values "Bradley", "Doyle", "Doyle", and "Doyle" respectively, you can try this formula:

=COUNTA(UNIQUE(A1:A4))

This formula will count the unique values in the range A1:A4. In this case, it should return the result 2, as there are two unique names: "Bradley" and "Doyle".

I hope the information above is helpful to you!

Best Regards, 
Thomas C - MSFT | Microsoft Community Support Specialist

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-08-19T08:54:08+00:00

    Given that this is a new question, in order to better maintain the order of the community, I will split and move your new question to a new thread. You can click on this link to access it: CountA formula with Filter Feature - Microsoft Community. I will answer your question in the new thread.

    Thomas

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-08-13T00:57:29+00:00

    I'm glad your issue was resolved. If my previous explanations were helpful to you, please select 'Yes' under the response that assisted you.

    This will highlight the response and make it easier for other users encountering the same query to find this thread through search engines. Thank you for your cooperation.

    Have a nice day!

    Thomas

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-08-12T23:22:06+00:00

    Hello Thomas,

    Works beautifully :)

    Appreciate your help!

    Aleisha

    Was this answer helpful?

    0 comments No comments