Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

repetitions names lists

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Repetitions of names in lists

Repetitions of names in lists

ResolvedVersion 365

Repetitions of names in lists

I have a spreadsheet containing thousands of rows of data, each of which is about a committee membership role. Most people in the list are only on one committee (one role), however many are on more than one. I'd be very grateful for any advice on the simplest way to find out how many people in the list just have one committee role (ie just appear in one row) and how many people have more than one committee role, ie their name is in more than one row.

RE: Repetitions of names in lists

Hi Catherine,

Thankyou for your question to the forum.

The answer to your problem is using the UNIQUE function twice! Here's how:

=COUNTA(UNIQUE(D2:D30,,TRUE))

This gives you a count of all names (range D2 to D30) where they only appear once. (NB. the 2nd comma is entered in order to 'bypass' the 2nd argument so this is important to include).

To get a count of names appearing multiple times you need to subtract the above formula from a count of unique names:

=COUNTA(UNIQUE(D2:D30))-COUNTA(UNIQUE(D2:D30,,TRUE))

I hope this helps

Kind regards
Martin

Wed 5 Mar 2025: Automatically marked as resolved.

Excel tip:

Adding a comment to a formula

1. At the end of the formula, add a + (plus) sign.
2. Type the letter N, and in parentheses, type your comment in quotation marks.

eg.

=CurrentAssets / CurrentLiabilities+ N("The formula returns Current Ratio")

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.18 secs.